Пример #1
0
        private static void OnIntOnlyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            bool newPropertyValue        = (bool)e.NewValue;
            ctrlDigitalKeyBoard instance = (ctrlDigitalKeyBoard)d;

            instance.BtnPoint.Visibility = (newPropertyValue ? Visibility.Hidden : Visibility.Visible);
        }
Пример #2
0
        private static void OnCanCanceledPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            bool newPropertyValue        = (bool)e.NewValue;
            ctrlDigitalKeyBoard instance = (ctrlDigitalKeyBoard)d;

            instance.CancelEnable = newPropertyValue;
        }