Information générale
Catégorie:
Windows Presentation Foundation (WPF)
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement