protected static void MyIsSelectedPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { LineManipulator3D lm = d as LineManipulator3D; if (lm != null) { lm.IsSelectedCopy = lm.IsSelected; } }
protected static void MyCoordsTargetInPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { LineManipulator3D lm = d as LineManipulator3D; if (lm != null) { List <Point3D> newVal = e.NewValue as List <Point3D>; if (newVal != null) { if (newVal.Count > 0) { lm.IsSelected = true; } else { lm.IsSelected = false; } } lm.UpdateOnCoordsChange(); } }