Example #1
0
        private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MyDependencyObject control = (MyDependencyObject)d;
            var e1 = new RoutedPropertyChangedEventArgs <int>((int)e.OldValue,
                                                              (int)e.NewValue, ValueChangedEvent);

            control.OnValueChanged(e1);
        }