Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting objects on a WPF canvas?
Message
From
24/02/2009 15:16:38
 
 
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Miscellaneous
Thread ID:
01383557
Message ID:
01383901
Views:
45
>I think I've done this in the past by creating a region (say a rectangular one based on your four points) then using the .Union() method against each object of interest. If the result is null then the object is not within the region. (This can also be used for selecting muliple objects). It's possible that none of your four points will actually fall within the ellipse even though the initial point is very close to it..
>Haven't access to .NET at the moment so I can't test it.....
>Best,
>Viv


I like this idea. Could be helpful as I continue to work with shapes on a canvas.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform