C# Class FirstFloor.ModernUI.Windows.Controls.SplitButton

Inheritance: System.Windows.Controls.Button
ファイルを表示 Open project: gro-ove/actools

Public Properties

Property Type Description
HorizontalOffsetProperty System.Windows.DependencyProperty
IsContextMenuOpenProperty System.Windows.DependencyProperty
ModeProperty System.Windows.DependencyProperty
PlacementProperty System.Windows.DependencyProperty
PlacementRectangleProperty System.Windows.DependencyProperty
VerticalOffsetProperty System.Windows.DependencyProperty

Public Methods

Method Description
OnApplyTemplate ( ) : void

OnApplyTemplate override, set up the click event for the dropdown if present in the template

Protected Methods

Method Description
OnClick ( ) : void

Handles the Base Buttons OnClick event

Private Methods

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

Event Handler for the Drop Down Button’s Click event

EnsureContextMenuIsValid ( ) : void

Make sure the Context menu is not null

OnDropdown ( ) : void
OnHorizontalOffsetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

HorizontalOffset Property changed callback, pass the value through to the buttons context menu

OnIsContextMenuOpenChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnPlacementChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Placement Property changed callback, pass the value through to the buttons context menu

OnPlacementRectangleChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

PlacementRectangle Property changed callback, pass the value through to the buttons context menu

OnVerticalOffsetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

VerticalOffset Property changed callback, pass the value through to the buttons context menu

SplitButton ( ) : System.ComponentModel

Static Constructor

Method Details

OnApplyTemplate() public method

OnApplyTemplate override, set up the click event for the dropdown if present in the template
public OnApplyTemplate ( ) : void
return void

OnClick() protected method

Handles the Base Buttons OnClick event
protected OnClick ( ) : void
return void

Property Details

HorizontalOffsetProperty public_oe static_oe property

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

IsContextMenuOpenProperty public_oe static_oe property

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

ModeProperty public_oe static_oe property

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

PlacementProperty public_oe static_oe property

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

PlacementRectangleProperty public_oe static_oe property

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

VerticalOffsetProperty public_oe static_oe property

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