private static void OnAutoOpenDelayChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadSplitButton button = d as RadSplitButton; if (button != null) { button.AutoOpenTimerApplyState(true); } }
private static void OnCommandChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadSplitButton button = d as RadSplitButton; if (button != null) { button.ChangeCommand((ICommand)e.OldValue, (ICommand)e.NewValue); } }
private static void OnCommandTargetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadSplitButton button = d as RadSplitButton; if (button != null) { button.CanExecuteApply(); } }
private static void OnDropDownContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadSplitButton button = d as RadSplitButton; if (button != null) { button.UpdateVisualState(false); button.OnDropDownContentChanged(e.OldValue, e.NewValue); } }
private static void OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadSplitButton button = d as RadSplitButton; if (button != null) { bool newValue = (bool)e.NewValue; if (newValue) { RadRoutedEventArgs args = button.RaisePopupOpening(); if (args.Handled) { button.IsOpen = false; return; } } } }