Hi,
In the model i have a observable collection of objects. With a itemscontrol (and usercontrol) i display these elements (shapes). Now i want to do hittesting on the parrent canvas. For example when I execute this code:
HitTestResult result = VisualTreeHelper.HitTest(allContent, new Point(70, 340));
I get a HitTestResult, but i want to get the object in the model representing this "clicked" shape....
Is there a posibility to get the object?
Thnx