Table of Contents

Class BaseObject

Namespace
Myra.MML
Assembly
Myra.dll

Base class for all objects that support identifiers and attached properties.

public class BaseObject : IItemWithId, INotifyAttachedPropertyChanged
Inheritance
BaseObject
Implements
Derived
Inherited Members

Fields

AttachedPropertiesValues

Gets the dictionary storing values for all attached properties on this object.

[Browsable(false)]
public readonly Dictionary<int, object> AttachedPropertiesValues

Field Value

Dictionary<int, object>

Properties

Id

Gets or sets the unique identifier for this object.

public string Id { get; set; }

Property Value

string

UserData

Gets a dictionary of custom user attributes not mapped to the object.

[Browsable(false)]
public Dictionary<string, string> UserData { get; }

Property Value

Dictionary<string, string>

Methods

OnAttachedPropertyChanged(BaseAttachedPropertyInfo)

Called when an attached property changes on this object.

public virtual void OnAttachedPropertyChanged(BaseAttachedPropertyInfo propertyInfo)

Parameters

propertyInfo BaseAttachedPropertyInfo

Information about the attached property that changed.

OnIdChanged()

Called when the Id property changes.

protected virtual void OnIdChanged()

Events

IdChanged

Occurs when the Id property changes.

public event MyraEventHandler IdChanged

Event Type

MyraEventHandler