Xceed.Wpf.Toolkit.DropDownButton.OnCommandChanged C# (CSharp) Method

OnCommandChanged() private static method

private static OnCommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void
    private static void OnCommandChanged( DependencyObject d, DependencyPropertyChangedEventArgs e )
    {
      DropDownButton dropDownButton = d as DropDownButton;
      if( dropDownButton != null )
        dropDownButton.OnCommandChanged( ( ICommand )e.OldValue, ( ICommand )e.NewValue );
    }

Same methods

DropDownButton::OnCommandChanged ( ICommand oldValue, ICommand newValue ) : void

Usage Example

示例#1
0
        private static void OnCommandChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DropDownButton dropDownButton = d as DropDownButton;

            if (dropDownButton != null)
            {
                dropDownButton.OnCommandChanged(( ICommand )e.OldValue, ( ICommand )e.NewValue);
            }
        }