Redraw problems


I have encountered problems with repainting the plugin's contents in Alpha 2 release. When I am at the today screen, expand the Start menu and then collapse it back, the half of the plugin which was covered by the Start menu is redrawn correctly, but the second half is not redrawn and shows only the background.
When I suspend the device and wake it up again, after approx. 5 seconds the plugin's content disappears and I can see only the background without items I paint in the Paint event of the User Control.
I have Windows Mobile 5 and I have encountered the problem with both my custom plugin and the AnotherTodayScreenItem sample plugin you had provided in the Alpha 2 release.


rbrison wrote Apr 16, 2008 at 1:28 PM


I'm unsure why the whole window get cleared in the first place, But the reason that only half gets repainted is that the PaintEventArgs is passing the ClipRectangle with only the portion that the Start Menu covered up. Since the ClipRectangle is read only I found that instead of using the PaintEventArgs.Graphics to do the painting, create a new Graphics with Me.CreateGraphics. This will new Graphics will not be clipped and you should be able to paint the whole control correctly.

bobpf wrote Nov 2, 2008 at 5:43 PM

I have encountered this as well. Even when I create a graphics context. My application shows a dialog box when the plugin is clicked. After returning from the modeless dialog the today screen item is not displaying.

bobpf wrote Nov 2, 2008 at 5:51 PM

Oops. Never mind. Coding error.

wrote Feb 13, 2013 at 2:44 AM