In This Article

RibbonGroupLauncherButtonViewModel Class

Represents a view model for a launcher button control within a ribbon group.

public class RibbonGroupLauncherButtonViewModel : BarKeyedObjectViewModelBase, IHasKey, IHasTag, IHasVariantImages
Inheritance:
object ObservableObjectBase BarKeyedObjectViewModelBase object
Implements:
IHasKey IHasTag IHasVariantImages

Constructors

RibbonGroupLauncherButtonViewModel()

Initializes an instance of the class.

public RibbonGroupLauncherButtonViewModel()

RibbonGroupLauncherButtonViewModel(string?)

Initializes an instance of the class with the specified key. The label and key tip text are auto-generated.

public RibbonGroupLauncherButtonViewModel(string? key)
Parameter Type Description
key string

A string that uniquely identifies the control.

RibbonGroupLauncherButtonViewModel(string?, string?)

Initializes an instance of the class with the specified key and label. The key tip text is auto-generated.

public RibbonGroupLauncherButtonViewModel(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.

RibbonGroupLauncherButtonViewModel(string?, string?, string?)

Initializes an instance of the class with the specified key, label, and key tip text.

public RibbonGroupLauncherButtonViewModel(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.

RibbonGroupLauncherButtonViewModel(string?, string?, string?, ICommand?)

Initializes an instance of the class with the specified key, label, key tip text, and command.

public RibbonGroupLauncherButtonViewModel(string? key, string? label, string? keyTipText, ICommand? command)
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 command or key if null.

keyTipText string

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

command ICommand

The command to attach to the control.

RibbonGroupLauncherButtonViewModel(string?, string?, ICommand?)

Initializes an instance of the class with the specified key, label, and command. The key tip text is auto-generated.

public RibbonGroupLauncherButtonViewModel(string? key, string? label, ICommand? command)
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 command or key if null.

command ICommand

The command to attach to the control.

RibbonGroupLauncherButtonViewModel(string?, ICommand?)

Initializes an instance of the class with the specified key and command. The label and key tip text are auto-generated.

public RibbonGroupLauncherButtonViewModel(string? key, ICommand? command)
Parameter Type Description
key string

A string that uniquely identifies the control.

command ICommand

The command to attach to the control.

RibbonGroupLauncherButtonViewModel(RoutedCommand?)

Initializes an instance of the class with the specified RoutedCommand, also used to auto-generate a key, label, and key tip text.

public RibbonGroupLauncherButtonViewModel(RoutedCommand? routedCommand)
Parameter Type Description
routedCommand RoutedCommand

The command to attach to the control.

Properties

Command

The ICommand to attach to the control.

public ICommand? Command { get; set; }

Property Value

ICommand

CommandParameter

The parameter to pass to the Command property.

public object? CommandParameter { get; set; }

Property Value

object

Description

The text description to display in screen tips.

public string? Description { get; set; }

Property Value

string

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

SmallImageSource

The ImageSource for a small image, generally 16x16 size.

public ImageSource? SmallImageSource { get; set; }

Property Value

ImageSource

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

Inherited Members

Extension Methods