Represents a view model for a regular button control within a bar control.
- Inheritance:
-
object
Observable
Object BarBase Keyed objectObject View Model Base
- Derived:
-
Bar
Toggle Button View Model
- Implements:
-
IHas
Key IHasTag IHasVariant Images
Constructors
BarButtonViewModel()
Initializes a new instance of the class.
BarButtonViewModel(string?)
Initializes a new instance of the class with the specified key. The label and key tip text are auto-generated.
Parameter | Type | Description |
---|---|---|
key | string | A string that uniquely identifies the control. |
BarButtonViewModel(string?, string?)
Initializes a new instance of the class with the specified key and label. The key tip text is auto-generated.
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 |
BarButtonViewModel(string?, string?, string?)
Initializes a new instance of the class with the specified key, label, and key tip text.
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 |
keyTipText | string | The key tip text, which is auto-generated from the |
BarButtonViewModel(string?, string?, string?, ICommand?)
Initializes a new instance of the class with the specified key, label, key tip text, and 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 |
keyTipText | string | The key tip text, which is auto-generated from the |
command | ICommand | The command to attach to the control. |
BarButtonViewModel(string?, string?, ICommand?)
Initializes a new instance of the class with the specified key, label, and command. The key tip text is auto-generated.
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 | ICommand | The command to attach to the control. |
BarButtonViewModel(string?, ICommand?)
Initializes a new instance of the class with the specified key and command. The label and key tip text are auto-generated.
Parameter | Type | Description |
---|---|---|
key | string | A string that uniquely identifies the control. |
command | ICommand | The command to attach to the control. |
Properties
CanCloneToRibbonQuickAccessToolBar
Indicates whether the control can be cloned to the ribbon quick-access toolbar.
Property Value
- bool:
The default value is
true
.
Command
The ICommand to attach to the control.
Property Value
CommandParameter
The parameter to pass to the Command property.
Property Value
Description
The text description to display in screen tips.
Property Value
InputGesture
The input gesture to display in menu items and screen tips.
Property Value
- KeyGesture
IsInputGestureTextVisible
Indicates whether the input gesture text is allowed to be visible in the user interface.
Property Value
- bool:
The default value is
true
.
IsVisible
Indicates whether the control is currently visible.
Property Value
- bool:
The default value is
true
.
KeyTipText
The key tip text used to access the control.
Property Value
Label
The text label to display.
Property Value
LargeIcon
The object representing a large icon, generally 32x32
size.
Property Value
MediumIcon
The object representing a medium icon, generally 24x24
size.
Property Value
SmallIcon
The object representing a small icon, generally 16x16
size.
Property Value
StaysOpenOnClick
Indicates whether menus should try and remain open when the control is clicked.
Property Value
- bool:
The default value is
false
.
Title
The string title, which can override the Label when displayed in screen tips and customization UI.
Property Value
ToolBarItemCollapseBehavior
The Item
Property Value
- Item
Collapse :Behavior The default value is
Default
.
ToolBarItemVariantBehavior
The Item
Property Value
- Item
Variant :Behavior The default value is Always
Small .
UseLargeMenuItem
Indicates whether to use a large size when the control is a menu item.
Property Value
- bool:
The default value is
false
.
Inherited Members
-
Bar
Keyed Object View Model Base. To String() -
Bar
Keyed Object View Model Base. Key -
Bar
Keyed Object View Model Base. Tag -
Observable
Object Base. On Property Changed(string) -
Observable
Object Base. On Property Changed(Property Changed Event Args) -
Observable
Object Base. On Property Changing(string) -
Observable
Object Base. On Property Changing(Property Changing Event Args) - ObservableObjectBase.SetProperty<T>(ref T, T, string)
-
Observable
Object Base. Property Changed -
Observable
Object Base. Property Changing -
object.
Get Type() -
object.
Memberwise Clone() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()