HypernovaDesktop Components · docs
Binarymission
WPFRibbon › BinaryRibbonSplitButtonControl

BinaryRibbonSplitButtonControl

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Office

A custom dro-down button control that provides two split areas of display - one for the button content, and the other (typically at the bottom location) for drop-down menu with more options (usually commands).

public class BinaryRibbonSplitButtonControl : BinaryRibbonDropDownButton, IBinaryRibbonKeyTipControl

Inherits from / implements: BinaryRibbonDropDownButton, IBinaryRibbonKeyTipControl

Members at a glance

ClickModeGets or sets the click mode.
OnApplyTemplateCalled when the template's tree is generated.
OnMouseLeftButtonDownRaises the MouseLeftButtonDown event. BinaryRibbonSplitButtonControl overrides it so the control's own handling runs alongside the base behavior.
OnMouseLeftButtonUpRaises the MouseLeftButtonUp event. BinaryRibbonSplitButtonControl overrides it so the control's own handling runs alongside the base behavior.
SwitchStateToggles the drop-down half of the split button. The click half is left alone, so pressing the button runs its command rather than opening the menu.
ClickModePropertyClickModeProperty property.

Properties

ClickMode

public ClickMode ClickMode

Gets or sets the click mode.

Value. The click mode.

Methods

OnApplyTemplate

public override void OnApplyTemplate()

Called when the template's tree is generated.

OnMouseLeftButtonDown

protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)

Raises the MouseLeftButtonDown event. BinaryRibbonSplitButtonControl overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseLeftButtonUp

protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Raises the MouseLeftButtonUp event. BinaryRibbonSplitButtonControl overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

SwitchState

protected override void SwitchState()

Toggles the drop-down half of the split button. The click half is left alone, so pressing the button runs its command rather than opening the menu.

Fields

ClickModeProperty

public static readonly DependencyProperty ClickModeProperty

ClickModeProperty property.