I am showing several 3D models as Model3DGroups. They are surrounded by Viewport3D, which captures MouseDown events.
I want to determine which Model3DGroup model (they all have names) was clicked. I start with this:
Point location = e.GetPosition(karte.ZAM3DViewport3D);
HitTestResult hitResult = VisualTreeHelper.HitTest(karte.ZAM3DViewport3D, location);
if (hitResult != null )
{
Debug.WriteLine("BREAKPOINT");
}
After hitting the breakpoint set in the WriteLine command, I look at the local view to find the variable I need, but I cannot find it. Can you help me, which way do I need to take to find the group that modelvisual3d belongs to?
Here is a screenshot of the tree:

Hedge source
share