HypernovaDesktop Components · docs
Binarymission
WPFRibbon › BinaryRibbonMenuItem

BinaryRibbonMenuItem

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

A custom menuitem class that enhances the user experience, and also simulates the MS Office like menu items.

public class BinaryRibbonMenuItem : MenuItem, IBinaryRibbonKeyTipControl

Inherits from / implements: MenuItem, IBinaryRibbonKeyTipControl

Members at a glance

ImageGets or sets the image.
OnApplyTemplateCalled when the template's tree is generated.
OnPopupClosedCalled when this control's drop-down popup closes. Override to react to it without having to attach to the popup yourself.
OnPopupOpenCalled when this control's drop-down popup opens. Override to react to it without having to attach to the popup yourself.
OnSubmenuClosedRaises the SubmenuClosed event. BinaryRibbonMenuItem overrides it so the control's own handling runs alongside the base behavior.
OnSubmenuOpenedRaises the SubmenuOpened event. BinaryRibbonMenuItem overrides it so the control's own handling runs alongside the base behavior.
ImagePropertyImageProperty property.

Properties

Image

public ImageSource Image

Gets or sets the image.

Value. The image.

Methods

OnApplyTemplate

public override void OnApplyTemplate()

Called when the template's tree is generated.

OnPopupClosed

protected virtual void OnPopupClosed(object sender, EventArgs e)

Called when this control's drop-down popup closes. Override to react to it without having to attach to the popup yourself.

sender
The popup.
e
Not used.

OnPopupOpen

protected virtual void OnPopupOpen(object sender, EventArgs e)

Called when this control's drop-down popup opens. Override to react to it without having to attach to the popup yourself.

sender
The popup.
e
Not used.

OnSubmenuClosed

protected override void OnSubmenuClosed(RoutedEventArgs e)

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

e
The data for the event.

OnSubmenuOpened

protected override void OnSubmenuOpened(RoutedEventArgs e)

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

e
The data for the event.

Fields

ImageProperty

public static readonly DependencyProperty ImageProperty

ImageProperty property.