Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting objects on a WPF canvas?
Message
De
24/02/2009 23:50:19
 
 
À
24/02/2009 13:20:47
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01383557
Message ID:
01383975
Vues:
34
>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
Fil
Voir

Click here to load this message in the networking platform