Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
Calling FindName() froma Marker
posted

I am using a MarkerDataTemplate. Is there away from the Marker or DataPoint to call FindName to get to a control in my MarkerDataTemplate? I am using ScatterLine chart. It seems Marker is not visual.

 

Parents
No Data
Reply
  • 9694
    posted

    Hello,

    It is my understanding that FindName does not work with templates. However, you can use the VisualTreeHelper with the Marker to go up and down the tree to find the element you need. Marker is ultimately a DependencyObject which works with VisualTreeHelper.

    Let me know if you need more information.

    Thanks you,

Children