private static void OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MaskControl control = d as MaskControl; if (control != null) { control.UpdateIsOpenState((bool)e.NewValue); } }
private static void OnVisibilityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MaskControl control = d as MaskControl; if (control != null) { control.UpdateOnVisibilityChanged((Visibility)e.NewValue); } }