Show / Hide Table of Contents

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.

Inheritance
object
AbstractBindable
AbstractDecorator
AbstractUpdateAwareDecorator
Implements
IBindable
INotifyPropertyChanged
IDecorator
Inherited Members
AbstractBindable.PropertyChanged
AbstractBindable.RequiresUpdate<T>(ref T, T)
AbstractBindable.SetProperty<T>(ref T, T, string)
AbstractBindable.OnPropertyChanged(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public abstract class AbstractDecorator : AbstractBindable, IBindable, INotifyPropertyChanged, IDecorator

Properties

| Edit this page View Source

DecoratedObjects

Gets a readonly-list of all IDecoratable this decorator is attached to.

Declaration
protected List<IDecoratable> DecoratedObjects { get; }
Property Value
Type Description
List<IDecoratable>
| Edit this page View Source

IsEnabled

Gets or sets if the IDecorator is enabled and will be used.

Declaration
public bool IsEnabled { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

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 Source

Detach()

Detaches the decorator from all IDecoratable it is currently attached to.

Declaration
protected virtual void Detach()
| Edit this page View Source

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.

| Edit this page View Source

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.

Implements

IBindable
INotifyPropertyChanged
IDecorator
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX