RibbonApplicationButtonViewModel Class
Represents a view model for an application button control within a ribbon.
public class RibbonApplicationButtonViewModel : ObservableObjectBase
- Inheritance:
- 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 | 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 | string | The text label to display. |
keyTipText | string | The key tip text, which is auto-generated from the |
Properties
KeyTipText
Gets or sets the key tip text used to access the control.
public string KeyTipText { get; set; }
Property Value
- string:
The key tip text used to access the control.
Label
Gets or sets 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
- object:
The additional content that optionally appears on the right side of the menu.
MenuAdditionalContentTemplate
Gets or sets the DataTemplate used to display the menu additional content.
public DataTemplate MenuAdditionalContentTemplate { get; set; }
Property Value
- DataTemplate:
The DataTemplate used to display the menu additional content.
MenuAdditionalContentTemplateSelector
Gets or sets the DataTemplateSelector that picks a DataTemplate used to display the menu additional content.
public DataTemplateSelector MenuAdditionalContentTemplateSelector { get; set; }
Property Value
- DataTemplateSelector:
The DataTemplateSelector that picks a 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
- object:
The footer content that optionally appears at the bottom of the menu.
MenuFooterTemplate
Gets or sets the DataTemplate used to display the menu footer content.
public DataTemplate MenuFooterTemplate { get; set; }
Property Value
- DataTemplate:
The DataTemplate used to display the menu footer content.
MenuFooterTemplateSelector
Gets or sets the DataTemplateSelector that picks a DataTemplate used to display the menu footer content.
public DataTemplateSelector MenuFooterTemplateSelector { get; set; }
Property Value
- DataTemplateSelector:
The DataTemplateSelector that picks a 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
- ObservableCollection<object>:
The collection of items that appear within the menu.
Methods
ToString()
Returns the string representation of this object.
Inherited Members
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()