WPF application fail to update the rectangle around the mouse pointer on click
Is it just me?
I’m a WPF newbie. Everything is nice and shining, and I开发者_JAVA百科 managed to write a small application that meets my needs, but I noticed that many times, for instance when I click a button or a list view, the event is handled (e.g. list view selection is changed), but the area under the mouse is not updated, so a small rectangle at the place where the mouse pointer was is not updated – e.g. the background color of the entire GridView selected item line is turned to dark blue, but there is a white rectangle area where the mouse was.
I couldn’t find any reference to this behavior on the web and was wondering if it is just me – something in my environment or in my code? And more importantly, is there a way to fix it?
PS I usually run the application from Debug from VS 2008, but this also happens when I run the release build outside of the IDE.
Thanks,
splintorThis sounds most likely to be a video driver issue -- it's certainly not expected behaviour, and it's not something you could do accidentally in your code. So it may depend on your graphics card, installed drivers and operating system. One possible way to diagnose it is to try tweaking the rendering settings, particularly the hardware acceleration option. See http://msdn.microsoft.com/en-us/library/aa970912.aspx, especially DisableHWAcceleration key and (for testing purposes only!) UseReferenceRasterizer.
精彩评论