OnCommandChanged() private static method

private static OnCommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void
示例#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);
            }
        }