In This Article

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

Gets or sets 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 whether Esc can close Backstage; otherwise, false. The default value is true.

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.

ContentTemplateSelector

Gets or sets the DataTemplateSelector that picks a DataTemplate used to display Backstage tab content.

public DataTemplateSelector ContentTemplateSelector { get; set; }

Property Value

DataTemplateSelector:

The DataTemplateSelector that picks a DataTemplate used to display Backstage tab content.

IsOpen

Gets or sets whether the Backstage is open.

public bool IsOpen { get; set; }

Property Value

bool:

true if the Backstage is open; otherwise, false. The default value is false.

Items

Gets the collection of items to display in the Backstage.

public ObservableCollection<object> Items { get; }

Property Value

ObservableCollection<object>:

The collection of items to display in the Backstage.

SelectedItem

Gets or sets the Backstage's selected item, which is a tab item in the Items collection.

public object SelectedItem { get; set; }

Property Value

object:

The selected item.

Tag

Gets or sets a user-defined object attached to the control.

public object Tag { get; set; }

Property Value

object

Methods

Close()

Closes the Backstage.

public void Close()

Open()

Opens the Backstage.

public void Open()

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members