Example #1
0
        private static void OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MaskControl control = d as MaskControl;

            if (control != null)
            {
                control.UpdateIsOpenState((bool)e.NewValue);
            }
        }
Example #2
0
        private static void OnVisibilityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MaskControl control = d as MaskControl;

            if (control != null)
            {
                control.UpdateOnVisibilityChanged((Visibility)e.NewValue);
            }
        }