In This Article

BarSplitButtonViewModel Class

Represents a view model for a split button control within a bar control.

public class BarSplitButtonViewModel : BarPopupButtonViewModel, IHasKey, IHasVariantImages
Inheritance:
object ObservableObjectBase BarKeyedObjectViewModelBase BarPopupButtonViewModel object
Derived:
BarSplitToggleButtonViewModel
Implements:
IHasKey IHasVariantImages

Constructors

BarSplitButtonViewModel()

Initializes a new instance of the class.

public BarSplitButtonViewModel()

BarSplitButtonViewModel(string?)

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

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

A string that uniquely identifies the control.

BarSplitButtonViewModel(string?, string?)

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

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

BarSplitButtonViewModel(string?, string?, string?)

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

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

BarSplitButtonViewModel(string?, string?, string?, ICommand?)

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

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

BarSplitButtonViewModel(string?, string?, ICommand?)

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

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

BarSplitButtonViewModel(string?, ICommand?)

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

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

Properties

InputGesture

The input gesture to display in menu items and screen tips.

public KeyGesture? InputGesture { get; set; }

Property Value

KeyGesture

IsInputGestureTextVisible

Indicates whether the input gesture text is allowed to be visible in the user interface.

public bool IsInputGestureTextVisible { get; set; }

Property Value

bool:

The default value is true.

StaysOpenOnClick

Indicates whether menus should try and remain open when the control is clicked.

public bool StaysOpenOnClick { get; set; }

Property Value

bool:

The default value is false.

Inherited Members

Extension Methods