HypernovaDesktop Components · docs
Binarymission
WPFRibbon › BinaryRibbonApplicationMenu

BinaryRibbonApplicationMenu

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

This class implements the ribbon control's application menu functionality.

public class BinaryRibbonApplicationMenu : MenuItem, IBinaryRibbonKeyTipControl, IBinaryRibbonApplicationMenu

Inherits from / implements: MenuItem, IBinaryRibbonKeyTipControl, IBinaryRibbonApplicationMenu

Members at a glance

BinaryRibbonApplicationMenuInitializes a new instance of the BinaryRibbonApplicationMenu class.
ButtonImageGets or sets the button image for the application meny button - also know as "Pearl" button.
FooterContentGets or sets the content for the footer area in the application menu window.
FooterDataTemplateGets or sets the DataTemplate for the footer content.
HeaderContentGets or sets the content for the header area in the application menu window.
HeaderDataTemplateGets or sets the DataTemplate for the header content.
IsOpenGets or sets a value indicating whether the instance of keytip is open.
RecentItemsGets or sets the "recent items" content - i.e. say for example a list of recent documents.
RecentItemsDataSourceGets or sets the "recent items" content's data source.
RecentItemsTemplateGets or sets the DataTemplate for the RecentItems content.
GetContainerForItemOverrideCreates the container that one item is shown in, which for this control is a BinaryRibbonMenuItem.
IsItemItsOwnContainerOverrideReports whether an item can be shown as it stands, without being wrapped in a container of its own.
OnApplyTemplateCalled when the template's tree is generated.
OnPopupWindowClosedCalled when this control's drop-down popup closes. Override to react to it without having to attach to the popup yourself.
OnPopupWindowOpenCalled when this control's drop-down popup opens. Override to react to it without having to attach to the popup yourself.
PrepareContainerForItemOverrideApplies this control's own settings to a container before the item it holds is shown.
ButtonImagePropertyButtonImageProperty property.
FooterContentPropertyFooterContentProperty property.
FooterDataTemplatePropertyFooterDataTemplateProperty property.
HeaderContentPropertyHeaderContentProperty property.
HeaderDataTemplatePropertyHeaderDataTemplateProperty property.
IsOpenPropertyIsOpenProperty property.
RecentItemsDataSourcePropertyRecentItemsDataSourceProperty property.
RecentItemsPropertyRecentItemsProperty property.
RecentItemsTemplatePropertyRecentItemsTemplateProperty property.

Constructors

BinaryRibbonApplicationMenu

public BinaryRibbonApplicationMenu() : base()

Initializes a new instance of the BinaryRibbonApplicationMenu class.

Properties

ButtonImage

public ImageSource ButtonImage

Gets or sets the button image for the application meny button - also know as "Pearl" button.

Value. The button image.

FooterContent

public object FooterContent

Gets or sets the content for the footer area in the application menu window.

Value. The content of the footer.

FooterDataTemplate

public DataTemplate FooterDataTemplate

Gets or sets the DataTemplate for the footer content.

Value. The footer data template.

HeaderContent

public object HeaderContent

Gets or sets the content for the header area in the application menu window.

Value. The content of the header.

HeaderDataTemplate

public DataTemplate HeaderDataTemplate

Gets or sets the DataTemplate for the header content.

Value. The header data template.

IsOpen

public bool IsOpen

Gets or sets a value indicating whether the instance of keytip is open.

Value. true if this keytip instance is open; otherwise, false .

RecentItems

public object RecentItems

Gets or sets the "recent items" content - i.e. say for example a list of recent documents.

RecentItemsDataSource

public object RecentItemsDataSource

Gets or sets the "recent items" content's data source.

Value. The recent items data source.

RecentItemsTemplate

public DataTemplate RecentItemsTemplate

Gets or sets the DataTemplate for the RecentItems content.

Value. The recent items's data template.

Methods

GetContainerForItemOverride

protected override System.Windows.DependencyObject GetContainerForItemOverride()

Creates the container that one item is shown in, which for this control is a BinaryRibbonMenuItem.

IsItemItsOwnContainerOverride

protected override bool IsItemItsOwnContainerOverride(object item)

Reports whether an item can be shown as it stands, without being wrapped in a container of its own.

OnApplyTemplate

public override void OnApplyTemplate()

Called when the template's tree is generated.

OnPopupWindowClosed

protected virtual void OnPopupWindowClosed(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.

OnPopupWindowOpen

protected virtual void OnPopupWindowOpen(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.

PrepareContainerForItemOverride

protected override void PrepareContainerForItemOverride(DependencyObject element, object item)

Applies this control's own settings to a container before the item it holds is shown.

Fields

ButtonImageProperty

public static readonly DependencyProperty ButtonImageProperty

ButtonImageProperty property.

FooterContentProperty

public static readonly DependencyProperty FooterContentProperty

FooterContentProperty property.

FooterDataTemplateProperty

public static readonly DependencyProperty FooterDataTemplateProperty

FooterDataTemplateProperty property.

HeaderContentProperty

public static readonly DependencyProperty HeaderContentProperty

HeaderContentProperty property.

HeaderDataTemplateProperty

public static readonly DependencyProperty HeaderDataTemplateProperty

HeaderDataTemplateProperty property.

IsOpenProperty

public static readonly DependencyProperty IsOpenProperty

IsOpenProperty property.

RecentItemsDataSourceProperty

public static readonly DependencyProperty RecentItemsDataSourceProperty

RecentItemsDataSourceProperty property.

RecentItemsProperty

public static readonly DependencyProperty RecentItemsProperty

RecentItemsProperty property.

RecentItemsTemplateProperty

public static readonly DependencyProperty RecentItemsTemplateProperty

RecentItemsTemplateProperty property.