private static void UpdateUIRepresentation(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CursorNearestPlotGraph graph = (CursorNearestPlotGraph)d;

            if ((bool)e.NewValue)
            {
                graph.UpdateUIRepresentation();
            }
        }
        private static void OnPositionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CursorNearestPlotGraph graph = (CursorNearestPlotGraph)d;

            graph.UpdateUIRepresentation((Point)e.NewValue);
        }