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 |
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 |
keyTipText | string | The key tip text, which is auto-generated from the |
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 |
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 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 | 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. |
BarSplitButtonViewModel(RoutedCommand)
Initializes a new 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
Gets or sets the input gesture text to display in menu items and screen tips, which overrides any auto-generated input gesture text from the Command.
public string InputGestureText { get; set; }
Property Value
- string:
The input gesture text to display in menu items and screen tips.
IsInputGestureTextVisible
Gets or sets whether the input gesture text is allowed to be visible in the user interface.
public bool IsInputGestureTextVisible { get; set; }
Property Value
- bool:
true
if the input gesture text is allowed to be visible in the user interface; otherwise,false
. The default value istrue
.
StaysOpenOnClick
Gets or sets whether menus should try and remain open when the control is clicked.
public bool StaysOpenOnClick { get; set; }
Property Value
- bool:
true
if 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.IsVisible
- BarPopupButtonViewModel.KeyTipText
- BarPopupButtonViewModel.Label
- BarPopupButtonViewModel.LargeImageSource
- BarPopupButtonViewModel.MediumImageSource
- BarPopupButtonViewModel.MenuItems
- BarPopupButtonViewModel.PopupOpeningCommand
- BarPopupButtonViewModel.SmallImageSource
- BarPopupButtonViewModel.Title
- BarPopupButtonViewModel.ToolBarItemCollapseBehavior
- BarPopupButtonViewModel.ToolBarItemVariantBehavior
- BarPopupButtonViewModel.UseLargeMenuItem
- BarKeyedObjectViewModelBase.ToString()
- BarKeyedObjectViewModelBase.Key
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()