OnIsOpenChanged() private static method

private static OnIsOpenChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
o System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void
示例#1
0
        private static void OnIsOpenChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            DropDownButton dropDownButton = o as DropDownButton;

            if (dropDownButton != null)
            {
                dropDownButton.OnIsOpenChanged(( bool )e.OldValue, ( bool )e.NewValue);
            }
        }