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
Image | Gets or sets the image. |
OnApplyTemplate | Called when the template's tree is generated. |
OnPopupClosed | Called when this control's drop-down popup closes. Override to react to it without having to attach to the popup yourself. |
OnPopupOpen | Called when this control's drop-down popup opens. Override to react to it without having to attach to the popup yourself. |
OnSubmenuClosed | Raises the SubmenuClosed event. BinaryRibbonMenuItem overrides it so the control's own handling runs alongside the base behavior. |
OnSubmenuOpened | Raises the SubmenuOpened event. BinaryRibbonMenuItem overrides it so the control's own handling runs alongside the base behavior. |
ImageProperty | ImageProperty 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.
Fields
ImageProperty
public static readonly DependencyProperty ImageProperty
ImageProperty property.