Пример #1
0
        private static void OnAutoOpenDelayChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadSplitButton button = d as RadSplitButton;

            if (button != null)
            {
                button.AutoOpenTimerApplyState(true);
            }
        }
Пример #2
0
        private static void OnCommandChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadSplitButton button = d as RadSplitButton;

            if (button != null)
            {
                button.ChangeCommand((ICommand)e.OldValue, (ICommand)e.NewValue);
            }
        }
Пример #3
0
        private static void OnCommandTargetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadSplitButton button = d as RadSplitButton;

            if (button != null)
            {
                button.CanExecuteApply();
            }
        }
Пример #4
0
        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);
            }
        }
Пример #5
0
        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;
                    }
                }
            }
        }