BarTextBoxViewModel Class
Represents a view model for a textbox control within a bar control.
public class BarTextBoxViewModel : BarKeyedObjectViewModelBase, IHasKey, IHasTag, IHasVariantImages
- Inheritance:
- object ObservableObjectBase BarKeyedObjectViewModelBase object
- Implements:
- IHasKey IHasTag IHasVariantImages
Constructors
BarTextBoxViewModel()
Initializes an instance of the class.
public BarTextBoxViewModel()
BarTextBoxViewModel(string?)
Initializes an instance of the class with the specified key. The label and key tip text are auto-generated.
public BarTextBoxViewModel(string? key)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
BarTextBoxViewModel(string?, string?)
Initializes an instance of the class with the specified key and label. The key tip text is auto-generated.
public BarTextBoxViewModel(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 |
BarTextBoxViewModel(string?, string?, string?)
Initializes an instance of the class with the specified key, label, and key tip text.
public BarTextBoxViewModel(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 |
BarTextBoxViewModel(string?, string?, string?, ICommand?)
Initializes an instance of the class with the specified key, label, key tip text, and command.
public BarTextBoxViewModel(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. |
BarTextBoxViewModel(string?, string?, ICommand?)
Initializes an instance of the class with the specified key, label, and command. The key tip text is auto-generated.
public BarTextBoxViewModel(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. |
BarTextBoxViewModel(string?, ICommand?)
Initializes an instance of the class with the specified key and command. The label and key tip text are auto-generated.
public BarTextBoxViewModel(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. |
BarTextBoxViewModel(RoutedCommand?)
Initializes an instance of the class with the specified RoutedCommand, also used to auto-generate a key, label, and key tip text.
public BarTextBoxViewModel(RoutedCommand? routedCommand)
| Parameter | Type | Description |
|---|---|---|
| routedCommand | RoutedCommand | The command to attach to the control. |
Properties
CanCloneToRibbonQuickAccessToolBar
Indicates whether the control can be cloned to the ribbon quick-access toolbar.
public bool CanCloneToRibbonQuickAccessToolBar { get; set; }
Property Value
- bool:
trueif the control can be cloned to the ribbon quick-access toolbar; otherwise,false. The default value istrue.
Command
The ICommand to attach to the control.
CommandParameter
The parameter to pass to the Command property.
Description
The text description to display in screen tips.
InvocationFocusBehavior
Indicates how the control processes focus when a commit occurs.
public InvocationFocusBehavior InvocationFocusBehavior { get; set; }
Property Value
- InvocationFocusBehavior:
The default value is Default.
IsStarSizingAllowed
Indicates whether the control can star-size and fill available space when appropriate.
public bool IsStarSizingAllowed { get; set; }
Property Value
- bool:
trueif the control can star-size; otherwise,false. The default value isfalse.
IsVisible
Indicates whether the control is currently visible.
KeyTipText
The key tip text used to access the control.
Label
The text label to display.
PlaceholderText
The placeholder text to display when the control is empty.
RequestedWidth
The requested width of the control.
SmallImageSource
The ImageSource for a small image, generally 16x16 size.
Text
The text being edited in the control.
Title
The string title, which can override the Label when displayed in screen tips and customization UI.
ToolBarItemCollapseBehavior
The ItemCollapseBehavior for the control when in a ribbon using Simplified layout mode.
public ItemCollapseBehavior ToolBarItemCollapseBehavior { get; set; }
Property Value
- ItemCollapseBehavior:
The default value is Default.
Inherited Members
- 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()