Ejemplo n.º 1
0
        private static void UpdateUIRepresentation(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CursorCoordinateGraph graph = (CursorCoordinateGraph)d;

            if ((bool)e.NewValue)
            {
                graph.UpdateUIRepresentation();
            }
            else
            {
                graph.vertLine.ClearValue(Line.StrokeDashOffsetProperty);
                graph.horizLine.ClearValue(Line.StrokeDashOffsetProperty);
            }
        }
Ejemplo n.º 2
0
        private static void OnPositionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            CursorCoordinateGraph graph = (CursorCoordinateGraph)d;

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