In This Article

RibbonApplicationButtonViewModel Class

Represents a view model for an application button control within a ribbon.

public class RibbonApplicationButtonViewModel : ObservableObjectBase, IHasTag
Inheritance:
object ObservableObjectBase object
Implements:
IHasTag

Constructors

RibbonApplicationButtonViewModel()

Initializes an instance of the class.

public RibbonApplicationButtonViewModel()

RibbonApplicationButtonViewModel(string?)

Initializes an instance of the class with the specified label.

public RibbonApplicationButtonViewModel(string? label)
Parameter Type Description
label string

The text label to display.

RibbonApplicationButtonViewModel(string?, string?)

Initializes an instance of the class with the specified label and key tip text.

public RibbonApplicationButtonViewModel(string? label, string? keyTipText)
Parameter Type Description
label string

The text label to display.

keyTipText string

The key tip text, which is auto-generated from the label if null.

Properties

KeyTipText

The key tip text used to access the control.

public string? KeyTipText { get; set; }

Property Value

string

Label

The text label to display.

public string? Label { get; set; }

Property Value

string

MenuAdditionalContent

The additional content that optionally appears on the right side of the menu.

public object? MenuAdditionalContent { get; set; }

Property Value

object

MenuAdditionalContentTemplate

The DataTemplate used to display the menu additional content.

public DataTemplate? MenuAdditionalContentTemplate { get; set; }

Property Value

DataTemplate

MenuAdditionalContentTemplateSelector

The DataTemplateSelector that picks a DataTemplate used to display the menu additional content.

public DataTemplateSelector? MenuAdditionalContentTemplateSelector { get; set; }

Property Value

DataTemplateSelector

MenuFooter

The footer content that optionally appears at the bottom of the menu.

public object? MenuFooter { get; set; }

Property Value

object

MenuFooterTemplate

The DataTemplate used to display the menu footer content.

public DataTemplate? MenuFooterTemplate { get; set; }

Property Value

DataTemplate

MenuFooterTemplateSelector

The DataTemplateSelector that picks a DataTemplate used to display the menu footer content.

public DataTemplateSelector? MenuFooterTemplateSelector { get; set; }

Property Value

DataTemplateSelector

MenuItems

The collection of items that appear within the menu.

public ObservableCollection<object> MenuItems { get; }

Property Value

ObservableCollection<object>

Tag

A user-defined object attached to the control.

public object? Tag { get; set; }

Property Value

object

Methods

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods