In This Article

DockableToolBarViewModel Class

Represents a view model for a dockable toolbar control.

public class DockableToolBarViewModel : BarKeyedObjectViewModelBase, IHasKey, IHasTag
Inheritance:
object ObservableObjectBase BarKeyedObjectViewModelBase object
Implements:
IHasKey IHasTag

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?:

true if the toolbar has a gripper; otherwise, false. The default value is null, 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?:

true if the toolbar has an options button; otherwise, false. The default value is null, meaning inherit the value from the ToolBarsHaveOptionsButtons property.

IsVisible

Gets or sets whether the control is currently visible.

public bool IsVisible { get; set; }

Property Value

bool:

The default value is true.

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

int:

The index of the Placement line the toolbar is within.

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

Dock:

A Dock specifying the toolbar placement. The default value is Top.

SortOrder

Gets or sets the toolbar's sort order within its Placement line.

public int SortOrder { get; set; }

Property Value

int:

The toolbar's sort order within its Placement line.

Title

Gets or sets the toolbar's title.

public string Title { get; set; }

Property Value

string:

The toolbar's title.

Methods

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members