コード例 #1
0
        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();
            }
        }
コード例 #2
0
        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();
            }
        }