C# Class Xceed.Wpf.Toolkit.DropDownButton

Inheritance: System.Windows.Controls.ContentControl, ICommandSource
显示文件 Open project: Gainedge/BetterExplorer Class Usage Examples

Public Properties

Property Type Description
ClickEvent System.Windows.RoutedEvent
ClosedEvent System.Windows.RoutedEvent
CommandParameterProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
CommandTargetProperty System.Windows.DependencyProperty
DropDownContentProperty System.Windows.DependencyProperty
IsOpenProperty System.Windows.DependencyProperty
OpenedEvent System.Windows.RoutedEvent

Private Properties

Property Type Description
CanExecuteChanged void
CanExecuteChanged void
CloseDropDown void
DropDownButton System
DropDownButton_Click void
HookUpCommand void
OnCommandChanged void
OnDropDownContentChanged void
OnIsOpenChanged void
OnKeyDown void
OnMouseDownOutsideCapturedElement void
Popup_Opened void
RaiseCommand void
RaiseRoutedEvent void
UnhookCommand void

Public Methods

Method Description
OnApplyTemplate ( ) : void

Protected Methods

Method Description
OnClick ( ) : void
OnCommandChanged ( ICommand oldValue, ICommand newValue ) : void
OnDropDownContentChanged ( object oldValue, object newValue ) : void
OnIsOpenChanged ( bool oldValue, bool newValue ) : void

Private Methods

Method Description
CanExecuteChanged ( ) : void
CanExecuteChanged ( object sender, EventArgs e ) : void
CloseDropDown ( bool isFocusOnButton ) : void

Closes the drop down.

DropDownButton ( ) : System
DropDownButton_Click ( object sender, RoutedEventArgs e ) : void
HookUpCommand ( ICommand oldCommand, ICommand newCommand ) : void

Hooks up a command to the CanExecuteChnaged event handler.

OnCommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnDropDownContentChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsOpenChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnMouseDownOutsideCapturedElement ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
Popup_Opened ( object sender, EventArgs e ) : void
RaiseCommand ( ) : void

Raises the command's Execute event.

RaiseRoutedEvent ( System.Windows.RoutedEvent routedEvent ) : void

Raises routed events.

UnhookCommand ( ICommand oldCommand, ICommand newCommand ) : void

Unhooks a command from the Command property.

Method Details

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnClick() protected method

protected OnClick ( ) : void
return void

OnCommandChanged() protected method

protected OnCommandChanged ( ICommand oldValue, ICommand newValue ) : void
oldValue ICommand
newValue ICommand
return void

OnDropDownContentChanged() protected method

protected OnDropDownContentChanged ( object oldValue, object newValue ) : void
oldValue object
newValue object
return void

OnIsOpenChanged() protected method

protected OnIsOpenChanged ( bool oldValue, bool newValue ) : void
oldValue bool
newValue bool
return void

Property Details

ClickEvent public_oe static_oe property

public static RoutedEvent,System.Windows ClickEvent
return System.Windows.RoutedEvent

ClosedEvent public_oe static_oe property

public static RoutedEvent,System.Windows ClosedEvent
return System.Windows.RoutedEvent

CommandParameterProperty public_oe static_oe property

public static DependencyProperty,System.Windows CommandParameterProperty
return System.Windows.DependencyProperty

CommandProperty public_oe static_oe property

public static DependencyProperty,System.Windows CommandProperty
return System.Windows.DependencyProperty

CommandTargetProperty public_oe static_oe property

public static DependencyProperty,System.Windows CommandTargetProperty
return System.Windows.DependencyProperty

DropDownContentProperty public_oe static_oe property

public static DependencyProperty,System.Windows DropDownContentProperty
return System.Windows.DependencyProperty

IsOpenProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsOpenProperty
return System.Windows.DependencyProperty

OpenedEvent public_oe static_oe property

public static RoutedEvent,System.Windows OpenedEvent
return System.Windows.RoutedEvent