There are two approaches that would allow you to customize the visibility of individual pointmarks at runtime:
- Using the MVVM pattern as demonstrated on this demo here (basically you need to re-template the Line visual element and substitute the default PointMark.Visibility template binding there with custom Binding expression to a property in your ViewModel; then any modification to the ViewModel property at runtime, is immediately propagated to the point mark itself.
- Alternatively you can take advantage of our UIElement.ChildrenOfType<T>() extension method and directly access the PointMark visuals to toggle their visibility.
We have attached two sample applications that demonstrate both approaches for your reference.
the Telerik team