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); }
public static void SetTheResendEventBehavior(DependencyObject obj, ResendEventBehavior value) { obj.SetValue(TheResendEventBehaviorProperty, value); }