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); }
private static void OnCanCanceledPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { bool newPropertyValue = (bool)e.NewValue; ctrlDigitalKeyBoard instance = (ctrlDigitalKeyBoard)d; instance.CancelEnable = newPropertyValue; }