开发者

WPF application fail to update the rectangle around the mouse pointer on click

开发者 https://www.devze.com 2022-12-12 07:03 出处:网络
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 cli

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,

splintor


This 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号