Class BaseObject
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
Properties
Id
Gets or sets the unique identifier for this object.
public string Id { get; set; }
Property Value
UserData
Gets a dictionary of custom user attributes not mapped to the object.
[Browsable(false)]
public Dictionary<string, string> UserData { get; }
Property Value
Methods
OnAttachedPropertyChanged(BaseAttachedPropertyInfo)
Called when an attached property changes on this object.
public virtual void OnAttachedPropertyChanged(BaseAttachedPropertyInfo propertyInfo)
Parameters
propertyInfoBaseAttachedPropertyInfoInformation 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