BarSplitButtonViewModel Class
Represents a view model for a split button control within a bar control.
public class BarSplitButtonViewModel : BarPopupButtonViewModel, IHasKey, IHasTag, IHasVariantImages
- Inheritance:
- object ObservableObjectBase BarKeyedObjectViewModelBase BarPopupButtonViewModel object
- Derived:
- BarSplitToggleButtonViewModel
- Implements:
- IHasKey IHasTag IHasVariantImages
Constructors
BarSplitButtonViewModel()
Initializes an instance of the class.
public BarSplitButtonViewModel()
BarSplitButtonViewModel(string?)
Initializes an 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 an 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 |
BarSplitButtonViewModel(string?, string?, string?)
Initializes an 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 |
| keyTipText | string | The key tip text, which is auto-generated from the |
BarSplitButtonViewModel(string?, string?, string?, ICommand?)
Initializes an 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 |
| keyTipText | string | The key tip text, which is auto-generated from the |
| command | ICommand | The command to attach to the control. |
BarSplitButtonViewModel(string?, string?, ICommand?)
Initializes an 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 | ICommand | The command to attach to the control. |
BarSplitButtonViewModel(string?, ICommand?)
Initializes an 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. |
BarSplitButtonViewModel(RoutedCommand?)
Initializes an instance of the class with the specified RoutedCommand, also used to auto-generate a key, label, and key tip text.
public BarSplitButtonViewModel(RoutedCommand? routedCommand)
| Parameter | Type | Description |
|---|---|---|
| routedCommand | RoutedCommand | The command to attach to the control. |
Properties
InputGestureText
The input gesture text to display in menu items and screen tips, which overrides any auto-generated input gesture text from the Command.
IsInputGestureTextVisible
Indicates whether the input gesture text is allowed to be visible in the user interface.
public bool IsInputGestureTextVisible { get; set; }
Property Value
- bool:
trueif the input gesture text is allowed to be visible in the user interface; otherwise,false. The default value istrue.
StaysOpenOnClick
Indicates whether menus should try and remain open when the control is clicked.
public bool StaysOpenOnClick { get; set; }
Property Value
- bool:
trueif menus should try and remain open when the control is clicked; otherwise,false. The default value isfalse.
Inherited Members
- BarPopupButtonViewModel.CanCloneToRibbonQuickAccessToolBar
- BarPopupButtonViewModel.Command
- BarPopupButtonViewModel.CommandParameter
- BarPopupButtonViewModel.Description
- BarPopupButtonViewModel.InvocationFocusBehavior
- BarPopupButtonViewModel.IsVisible
- BarPopupButtonViewModel.KeyTipText
- BarPopupButtonViewModel.Label
- BarPopupButtonViewModel.LargeImageSource
- BarPopupButtonViewModel.MediumImageSource
- BarPopupButtonViewModel.MenuItems
- BarPopupButtonViewModel.PopupClosedCommand
- BarPopupButtonViewModel.PopupOpeningCommand
- BarPopupButtonViewModel.SmallImageSource
- BarPopupButtonViewModel.Title
- BarPopupButtonViewModel.ToolBarItemCollapseBehavior
- BarPopupButtonViewModel.ToolBarItemVariantBehavior
- BarPopupButtonViewModel.UseLargeMenuItem
- BarKeyedObjectViewModelBase.ToString()
- BarKeyedObjectViewModelBase.Key
- BarKeyedObjectViewModelBase.Tag
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()