Information générale
Catégorie:
Windows Presentation Foundation (WPF)
>Your holes seem large enough that click area should not have been a problem. Not sure what was up with that. Was it just for when the holes got real small, or were you getting click through on the transparency?
They hole was plenty large (size of a quarter). The strokewidth was set to 1 (very thin), so the issue seemed to be just the fact that WPF is very literal about the selected point (down to the pixel, maybe?). So, you literally had to bery very sure that the exact tip point of the mouse arrow was exactly on a pixel on the circle. Now, if I made the strokewidth of the circle wider (like 2 or 3) it honored that, but they looked to thick on the screen.
My "ClickPointMargin" approach (posted in another reply), works perfectly to allow the user to be 1 or 2 pixels off (whatever allowance you set), and still find the intended user selection
Précédent
Suivant
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