In This Article

RibbonApplicationButtonViewModel Class

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

public class RibbonApplicationButtonViewModel : ObservableObjectBase, INotifyPropertyChanged
Inheritance:
System.Object ObservableObjectBase Object

Constructors

RibbonApplicationButtonViewModel()

Initializes a new instance of the class.

public RibbonApplicationButtonViewModel()

RibbonApplicationButtonViewModel(String)

Initializes a new instance of the class with the specified label.

public RibbonApplicationButtonViewModel(string label)
Parameter Type Description
label System.String

The text label to display.

RibbonApplicationButtonViewModel(String, String)

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

public RibbonApplicationButtonViewModel(string label, string keyTipText)
Parameter Type Description
label System.String

The text label to display.

keyTipText System.String

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

Properties

KeyTipText

Gets or sets the key tip text used to access the control.

public string KeyTipText { get; set; }

Property Value

System.String:

The key tip text used to access the control.

Label

Gets or sets the text label to display.

public string Label { get; set; }

Property Value

System.String:

The text label to display.

MenuAdditionalContent

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

public object MenuAdditionalContent { get; set; }

Property Value

System.Object:

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

MenuAdditionalContentTemplate

Gets or sets the System.Windows.DataTemplate used to display the menu additional content.

public DataTemplate MenuAdditionalContentTemplate { get; set; }

Property Value

System.Windows.DataTemplate:

The System.Windows.DataTemplate used to display the menu additional content.

MenuAdditionalContentTemplateSelector

Gets or sets the System.Windows.Controls.DataTemplateSelector that picks a System.Windows.DataTemplate used to display the menu additional content.

public DataTemplateSelector MenuAdditionalContentTemplateSelector { get; set; }

Property Value

System.Windows.Controls.DataTemplateSelector:

The System.Windows.Controls.DataTemplateSelector that picks a System.Windows.Controls.DataTemplateSelector used to display the menu additional content.

MenuFooter

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

public object MenuFooter { get; set; }

Property Value

System.Object:

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

MenuFooterTemplate

Gets or sets the System.Windows.DataTemplate used to display the menu footer content.

public DataTemplate MenuFooterTemplate { get; set; }

Property Value

System.Windows.DataTemplate:

The System.Windows.DataTemplate used to display the menu footer content.

MenuFooterTemplateSelector

Gets or sets the System.Windows.Controls.DataTemplateSelector that picks a System.Windows.DataTemplate used to display the menu footer content.

public DataTemplateSelector MenuFooterTemplateSelector { get; set; }

Property Value

System.Windows.Controls.DataTemplateSelector:

The System.Windows.Controls.DataTemplateSelector that picks a System.Windows.Controls.DataTemplateSelector used to display the menu footer content.

MenuItems

Gets the collection of items that appear within the menu.

public ObservableCollection<object> MenuItems { get; }

Property Value

System.Collections.ObjectModel.ObservableCollection<System.Object>:

The collection of items that appear within the menu.

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

System.String:

A string that represents the current object.

Inherited Members