In This Article

BarCheckBoxViewModel Class

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

public class BarCheckBoxViewModel : BarToggleButtonViewModel, INotifyPropertyChanged, IHasKey, IHasVariantImages, ICheckable
Inheritance:
System.Object ObservableObjectBase BarKeyedObjectViewModelBase BarButtonViewModel BarToggleButtonViewModel Object
Implements:
IHasKey IHasVariantImages ICheckable

Constructors

BarCheckBoxViewModel()

Initializes a new instance of the class.

public BarCheckBoxViewModel()

BarCheckBoxViewModel(String)

Initializes a new 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 System.String

A string that uniquely identifies the control.

BarCheckBoxViewModel(String, String)

Initializes a new 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 System.String

A string that uniquely identifies the control.

label System.String

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

BarCheckBoxViewModel(String, String, String)

Initializes a new 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 System.String

A string that uniquely identifies the control.

label System.String

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

keyTipText System.String

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

BarCheckBoxViewModel(String, String, String, ICommand)

Initializes a new 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 System.String

A string that uniquely identifies the control.

label System.String

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

keyTipText System.String

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

command System.Windows.Input.ICommand

The command to attach to the control.

BarCheckBoxViewModel(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 BarCheckBoxViewModel(string key, string label, ICommand command)
Parameter Type Description
key System.String

A string that uniquely identifies the control.

label System.String

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

command System.Windows.Input.ICommand

The command to attach to the control.

BarCheckBoxViewModel(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 BarCheckBoxViewModel(string key, ICommand command)
Parameter Type Description
key System.String

A string that uniquely identifies the control.

command System.Windows.Input.ICommand

The command to attach to the control.

BarCheckBoxViewModel(RoutedCommand)

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

public BarCheckBoxViewModel(RoutedCommand routedCommand)
Parameter Type Description
routedCommand System.Windows.Input.RoutedCommand

The command to attach to the control.

Inherited Members