Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MouseLeftButtonDown requires too much precision
Message
From
24/02/2009 07:07:56
 
 
To
24/02/2009 00:47:17
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Miscellaneous
Thread ID:
01383672
Message ID:
01383715
Views:
32
>I am responding to MouseLeftButtonDown events on elements added to a WPF canvas. It all works fine when clicked (i.e. the eventhandler fires off correctly), but it requires too much precision from the mouse pointer. You have to be perfectly on top of the circle to make it work. I need it to be a little more forgiving; maybe at least 1 or 2 pixles more forgiving. The elements on the canvas are nice big circles (about the size of a quarter on the screen), so the circles themselves are not too small, but the StrokeWidth of each one is 1, so it is a thin line.
>
>You can see a screenshot here: [http://twitpic.com/1f2ci/full]
>
>Most graphics app aren't this picky about the mouse picking. So I want to give the user a familiar experience.
>
>How can I make it a little more forgiving.

If you specify a Fill for the circle (you could use the same as the background canvas) then you should be able to click anywhere within the circle....
HTH,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform