/// <summary> /// respond to a dependency-property change /// </summary> /// <param name="d">This Dot</param> /// <param name="e">unused</param> private static void PositionValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Dot myDot = (Dot)d; myDot.Position = (Point)myDot.GetValue(PositionProperty); myDot.setToolTip(); //Debug.Print("Position Changed: " + myDot.Position); }
private static void YValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Dot myDot = (Dot)d; Point p = myDot.Position; p.Y = (double)e.NewValue; myDot.SetValue(PositionProperty, p); myDot.setToolTip(); //Debug.Print("Y Changed"); }