Пример #1
0
        private static void OnResendEventBehaviorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FrameworkElement el = (FrameworkElement)d;

            ResendEventBehavior oldBehavior = e.OldValue as ResendEventBehavior;

            oldBehavior?.Detach(el);

            ResendEventBehavior newBehavior = e.NewValue as ResendEventBehavior;

            newBehavior?.Attach(el);
        }
Пример #2
0
 public static void SetTheResendEventBehavior(DependencyObject obj, ResendEventBehavior value)
 {
     obj.SetValue(TheResendEventBehaviorProperty, value);
 }