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