In This Article

BarCheckBoxViewModel Class

Represents a view model for a checkbox control within a bar control.

public class BarCheckBoxViewModel : BarToggleButtonViewModel, IHasKey, IHasTag, IHasVariantImages, ICheckable
Inheritance:
object ObservableObjectBase BarKeyedObjectViewModelBase BarButtonViewModel BarToggleButtonViewModel object
Implements:
IHasKey IHasTag IHasVariantImages ICheckable

Constructors

BarCheckBoxViewModel()

Initializes an instance of the class.

public BarCheckBoxViewModel()

BarCheckBoxViewModel(string?)

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

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

A string that uniquely identifies the control.

BarCheckBoxViewModel(string?, string?)

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

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

BarCheckBoxViewModel(string?, string?, string?)

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

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

BarCheckBoxViewModel(string?, string?, string?, ICommand?)

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

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

BarCheckBoxViewModel(string?, string?, ICommand?)

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

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

BarCheckBoxViewModel(string?, ICommand?)

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

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

BarCheckBoxViewModel(RoutedCommand?)

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

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

The command to attach to the control.

Inherited Members

Extension Methods