In This Article

BarKeyedObjectViewModelBase Class

Represents an abstract view model base for an observable object that is identified by a unique string key.

public abstract class BarKeyedObjectViewModelBase : ObservableObjectBase, IHasKey, IHasTag
Inheritance:
object ObservableObjectBase object
Derived:
BarButtonViewModel BarGalleryViewModelBase BarPopupButtonViewModel BarTextBoxViewModel DockableToolBarViewModel RibbonBackstageHeaderButtonViewModel RibbonBackstageTabViewModel RibbonContextualTabGroupViewModel RibbonGroupLauncherButtonViewModel RibbonGroupViewModel RibbonTabViewModel
Implements:
IHasKey IHasTag

Constructors

BarKeyedObjectViewModelBase()

Initializes a new instance of the BarKeyedObjectViewModelBase class.

protected BarKeyedObjectViewModelBase()

BarKeyedObjectViewModelBase(string)

Initializes a new instance of the BarKeyedObjectViewModelBase class.

protected BarKeyedObjectViewModelBase(string key)
Parameter Type Description
key string

A string that uniquely identifies the control.

Properties

Key

Gets a string that uniquely identifies the control.

public string Key { get; set; }

Property Value

string:

A string that uniquely identifies the control.

Tag

Gets or sets a user-defined object attached to the control.

public object Tag { get; set; }

Property Value

object

Methods

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members