DockableToolBarViewModel Class
Represents a view model for a dockable toolbar control.
public class DockableToolBarViewModel : BarKeyedObjectViewModelBase, IHasKey, IHasTag
- Inheritance:
- object ObservableObjectBase BarKeyedObjectViewModelBase object
Constructors
DockableToolBarViewModel()
Initializes a new instance of the class.
public DockableToolBarViewModel()
DockableToolBarViewModel(string)
Initializes a new instance of the class with the specified key. The title is auto-generated.
public DockableToolBarViewModel(string key)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
DockableToolBarViewModel(string, string)
Initializes a new instance of the class with the specified key and title.
public DockableToolBarViewModel(string key, string title)
| Parameter | Type | Description |
|---|---|---|
| key | string | A string that uniquely identifies the control. |
| title | string | The toolbar's title. |
Properties
HasGripper
Gets or sets whether the toolbar has a gripper.
public bool? HasGripper { get; set; }
Property Value
- bool?:
trueif the toolbar has a gripper; otherwise,false. The default value isnull, meaning inherit the value from the ToolBarsHaveGrippers property.
HasOptionsButton
Gets or sets whether the toolbar has an options button.
public bool? HasOptionsButton { get; set; }
Property Value
- bool?:
trueif the toolbar has an options button; otherwise,false. The default value isnull, meaning inherit the value from the ToolBarsHaveOptionsButtons property.
IsVisible
Gets or sets whether the control is currently visible.
Items
Gets the collection of items in the control.
public ObservableCollection<object> Items { get; }
Property Value
- ObservableCollection<object>:
The collection of items in the control.
LineIndex
Gets or sets the index of the Placement line the toolbar is within.
public int LineIndex { get; set; }
Property Value
Offset
Gets or sets the anchor offset of the toolbar within its line.
public double Offset { get; set; }
Property Value
- double:
The anchor offset of the toolbar within its line.
Placement
Gets or sets a Dock specifying the toolbar placement.
public Dock Placement { get; set; }
Property Value
SortOrder
Gets or sets the toolbar's sort order within its Placement line.
public int SortOrder { get; set; }
Property Value
Title
Gets or sets the toolbar's title.
Methods
ToString()
Returns the string representation of this object.
Inherited Members
- BarKeyedObjectViewModelBase.Key
- BarKeyedObjectViewModelBase.Tag
- 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()