C# Class Delay.SplitButton

Inheritance: System.Windows.Controls.Button
ファイルを表示 Open project: hibernating-rhinos/RavenFS

Public Methods

Method Description
OnApplyTemplate ( ) : void

Called when the template is changed.

SplitButton ( ) : System

Initializes a new instance of the SplitButton class.

Protected Methods

Method Description
OnClick ( ) : void

Called when the Button is clicked.

OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void

Called when a key is pressed.

OpenButtonMenu ( ) : void

Opens the button menu.

Private Methods

Method Description
ContextMenu_Closed ( object sender, RoutedEventArgs e ) : void

Called when the ContextMenu is closed.

ContextMenu_Opened ( object sender, RoutedEventArgs e ) : void

Called when the ContextMenu is opened.

SplitButton_LayoutUpdated ( object sender, EventArgs e ) : void

Called when the ContextMenu is open and layout is updated.

SplitElement_MouseEnter ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Called when the mouse goes over the split element.

SplitElement_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Called when the mouse goes off the split element.

UpdateContextMenuOffsets ( ) : void

Updates the ContextMenu's Horizontal/VerticalOffset properties to keep it under the SplitButton.

Method Details

OnApplyTemplate() public method

Called when the template is changed.
public OnApplyTemplate ( ) : void
return void

OnClick() protected method

Called when the Button is clicked.
protected OnClick ( ) : void
return void

OnKeyDown() protected method

Called when a key is pressed.
protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
return void

OpenButtonMenu() protected method

Opens the button menu.
protected OpenButtonMenu ( ) : void
return void

SplitButton() public method

Initializes a new instance of the SplitButton class.
public SplitButton ( ) : System
return System