Class AbstractDecorator
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public abstract class AbstractDecorator : AbstractBindable, IBindable, INotifyPropertyChanged, IDecorator
Properties
| Edit this page View SourceDecoratedObjects
Gets a readonly-list of all IDecoratable this decorator is attached to.
Declaration
protected List<IDecoratable> DecoratedObjects { get; }
Property Value
Type | Description |
---|---|
List<IDecoratable> |
IsEnabled
Gets or sets if the IDecorator is enabled and will be used.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
Order
Gets or sets the order in which multiple decorators should be applied on the same object. Higher orders are processed first.
Declaration
public int Order { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceDetach()
Detaches the decorator from all IDecoratable it is currently attached to.
Declaration
protected virtual void Detach()
OnAttached(IDecoratable)
Attaches this IDecorator to the specified target.
Declaration
public virtual void OnAttached(IDecoratable decoratable)
Parameters
Type | Name | Description |
---|---|---|
IDecoratable | decoratable | The object this IDecorator should be attached to. |
OnDetached(IDecoratable)
Detaches this IDecorator from the specified target.
Declaration
public virtual void OnDetached(IDecoratable decoratable)
Parameters
Type | Name | Description |
---|---|---|
IDecoratable | decoratable | The object this IDecorator should be detached from. |