private new static void IsEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ((FormulaButton)d).IsEnabled = (bool) e.NewValue; }