RibbonBackstageViewModel Class
Represents a view model for a Backstage control within a ribbon.
public class RibbonBackstageViewModel : ObservableObjectBase, IHasTag
- Inheritance:
- object ObservableObjectBase object
- Implements:
- IHasTag
Constructors
RibbonBackstageViewModel()
Initializes an instance of the class.
public RibbonBackstageViewModel()
Properties
CanClose
Indicates whether the Backstage close button should be visible, and whether Esc
can close Backstage.
public bool CanClose { get; set; }
Property Value
- bool:
true
if the Backstage close button should be visible, and whetherEsc
can close Backstage; otherwise,false
. The default value istrue
.
Remarks
This feature is useful for scenarios where there is no document open in the main window yet, and Backstage is open, allowing for an end user to select a new document or open a document. In this scenario, you don't want the end user to be able to close Backstage until they take some action.
CanSelectFirstTabOnOpen
Indicates whether the first tab should be selected when the Backstage is opened.
ContentTemplate
The Avalonia.Controls.Templates.IDataTemplate used to display Backstage tab content.
public IDataTemplate? ContentTemplate { get; set; }
Property Value
- IDataTemplate
IsOpen
Indicates whether the Backstage is open.
Items
The collection of items to display in the Backstage.
SelectedItem
The Backstage's selected item, which is a tab item in the Items collection.
Tag
A user-defined object attached to the control.
Methods
Close()
Closes the Backstage.
public void Close()
Open()
Opens the Backstage.
public void Open()
ToString()
Returns the string representation of this object.
Inherited Members
- 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()