private static void PointPerUniteOfLengthPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { SetTrail createTrail = (SetTrail)obj; if ((int)args.NewValue != (int)args.OldValue) { createTrail.PointPerUniteOfLength = (int)args.NewValue; createTrail.raiseTrailParametersUpdatedEvent(); } }
private static void TrailFreedomPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { SetTrail createTrail = (SetTrail)obj; if ((double)args.NewValue != (double)args.OldValue) { createTrail.TrailCurvature = (double)args.NewValue; createTrail.raiseTrailParametersUpdatedEvent(); } }