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, INotifyPropertyChanged, IHasKey
Inheritance:
System.Object ObservableObjectBase Object
Derived:
BarButtonViewModel BarGalleryViewModelBase BarPopupButtonViewModel BarTextBoxViewModel RibbonBackstageHeaderButtonViewModel RibbonBackstageTabViewModel RibbonContextualTabGroupViewModel RibbonGroupLauncherButtonViewModel RibbonGroupViewModel RibbonTabViewModel
Implements:
IHasKey

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 System.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

System.String:

A string that uniquely identifies the control.

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

System.String:

A string that represents the current object.

Inherited Members