RibbonBackstageTabViewModel Class
Represents a view model for a tab control within a ribbon backstage.
public class RibbonBackstageTabViewModel : BarKeyedObjectViewModelBase, IHasKey, IHasTag, IHasVariantImages
- Inheritance:
- object ObservableObjectBase BarKeyedObjectViewModelBase object
- Implements:
- IHasKey IHasTag IHasVariantImages
Constructors
RibbonBackstageTabViewModel()
Initializes an instance of the class.
public RibbonBackstageTabViewModel()
RibbonBackstageTabViewModel(string?)
Initializes an instance of the class with the specified key. The label and key tip text are auto-generated.
public RibbonBackstageTabViewModel(string? key)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
RibbonBackstageTabViewModel(string?, string?)
Initializes an instance of the class with the specified key and label. The key tip text is auto-generated.
public RibbonBackstageTabViewModel(string? key, string? label)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
| label | string | The text label to display, which is auto-generated from the |
RibbonBackstageTabViewModel(string?, string?, string?)
Initializes an instance of the class with the specified key, label, and key tip text.
public RibbonBackstageTabViewModel(string? key, string? label, string? keyTipText)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
| label | string | The text label to display, which is auto-generated from the |
| keyTipText | string | The key tip text, which is auto-generated from the |
Properties
Content
The content for the tab's content area, which can be a UI control, a data object, or even this view model instance.
ContentTemplate
The DataTemplate for the tab's Content.
ContentTemplateSelector
The DataTemplateSelector for the tab's Content.
public DataTemplateSelector? ContentTemplateSelector { get; set; }
Property Value
Description
The text description to display in screen tips.
HeaderAlignment
A RibbonBackstageHeaderAlignment indicating the alignment of the control within the ribbon Backstage header.
public RibbonBackstageHeaderAlignment HeaderAlignment { get; set; }
Property Value
- RibbonBackstageHeaderAlignment:
The default value is Top.
IsEnabled
Indicates whether the control is currently enabled.
IsVisible
Indicates whether the control is currently visible.
KeyTipText
The key tip text used to access the control.
Label
The text label to display.
LargeImageSource
The ImageSource for a large image, generally 32x32 size.
SmallImageSource
The ImageSource for a small image, generally 16x16 size.
Title
The string title, which can override the Label when displayed in screen tips and customization UI.
VariantSize
The variant size of the tab.
public VariantSize VariantSize { get; set; }
Property Value
- VariantSize:
The default value is Medium.
Inherited Members
- BarKeyedObjectViewModelBase.ToString()
- BarKeyedObjectViewModelBase.Key
- BarKeyedObjectViewModelBase.Tag
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()