In This Article

RibbonBackstageTabViewModel Class

Represents a view model for a tab control within a ribbon backstage.

public class RibbonBackstageTabViewModel : BarKeyedObjectViewModelBase, IHasKey
Inheritance:
object ObservableObjectBase BarKeyedObjectViewModelBase object
Implements:
IHasKey

Constructors

RibbonBackstageTabViewModel()

Initializes a new instance of the class.

public RibbonBackstageTabViewModel()

RibbonBackstageTabViewModel(string?)

Initializes a new 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 a new 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 key if null.

RibbonBackstageTabViewModel(string?, string?, string?)

Initializes a new 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 key if null.

keyTipText string

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

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.

public object? Content { get; set; }

Property Value

object

ContentTemplate

The Avalonia.Controls.Templates.IDataTemplate for the tab's Content.

public IDataTemplate? ContentTemplate { get; set; }

Property Value

IDataTemplate

Description

The text description to display in screen tips.

public string? Description { get; set; }

Property Value

string

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.

IsVisible

Indicates whether the control is currently visible.

public bool IsVisible { get; set; }

Property Value

bool:

The default value is true.

KeyTipText

The key tip text used to access the control.

public string? KeyTipText { get; set; }

Property Value

string

Label

The text label to display.

public string? Label { get; set; }

Property Value

string

LargeIcon

The object representing a large icon, generally 32x32 size.

public object? LargeIcon { get; set; }

Property Value

object

SmallIcon

The object representing a small icon, generally 16x16 size.

public object? SmallIcon { get; set; }

Property Value

object

Title

The string title, which can override the Label when displayed in screen tips and customization UI.

public string? Title { get; set; }

Property Value

string

VariantSize

The variant size of the tab.

public VariantSize VariantSize { get; set; }

Property Value

VariantSize:

The default value is Medium.

Inherited Members

Extension Methods