Skip to main content

AvaloniaPropertyRegistry Class

Definition

Namespace:Avalonia
Assembly:Avalonia.Base
Package:Avalonia

Tracks registered Avalonia.AvaloniaProperty instances.

public class AvaloniaPropertyRegistry

Inheritance: object -> AvaloniaPropertyRegistry

Constructors

NameDescription
AvaloniaPropertyRegistryNo summary available.

AvaloniaPropertyRegistry Constructor

public AvaloniaPropertyRegistry()

Methods

NameDescription
FindRegistered (2 overloads)Finds a registered property on an object by name.
FindRegisteredDirectNo summary available.
GetRegistered (2 overloads)Gets all Avalonia.AvaloniaPropertys registered on a object.
GetRegisteredAttachedGets all attached Avalonia.AvaloniaPropertys registered on a type.
GetRegisteredDirect (2 overloads)No summary available.
GetRegisteredInheritedGets all inherited Avalonia.AvaloniaPropertys registered on a type.
IsRegistered (2 overloads)Checks whether a Avalonia.AvaloniaProperty is registered on a object.
RegisterRegisters a Avalonia.AvaloniaProperty on a type.
RegisterAttachedRegisters an attached Avalonia.AvaloniaProperty on a type.
UnregisterByModuleNo summary available.

FindRegistered overloads

FindRegistered Method

Finds a registered property on an object by name.

public Avalonia.AvaloniaProperty FindRegistered(Avalonia.AvaloniaObject o, string name)
Parameters

o Avalonia.AvaloniaObject

The object.

name string

The property name.

Returns

Avalonia.AvaloniaProperty

The registered property or null if no matching property found.

Exceptions

FindRegistered Method

Finds a registered property on a type by name.

public Avalonia.AvaloniaProperty FindRegistered(Type type, string name)
Parameters

type Type

The type.

name string

The property name.

Returns

Avalonia.AvaloniaProperty

The registered property or null if no matching property found.

Exceptions

FindRegisteredDirect Method

public Avalonia.DirectPropertyBase<TValue><T> FindRegisteredDirect<T>(Avalonia.AvaloniaObject o, Avalonia.DirectPropertyBase<TValue><T> property)

Parameters

o Avalonia.AvaloniaObject

property Avalonia.DirectPropertyBase<TValue><T>

Type Parameters

T

Returns

Avalonia.DirectPropertyBase<TValue><T>

GetRegistered overloads

GetRegistered Method

Gets all Avalonia.AvaloniaPropertys registered on a object.

public System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaProperty> GetRegistered(Avalonia.AvaloniaObject o)
Parameters

o Avalonia.AvaloniaObject

The object.

Returns

System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaProperty>

A collection of Avalonia.AvaloniaProperty definitions.

GetRegistered Method

Gets all non-attached Avalonia.AvaloniaPropertys registered on a type.

public System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaProperty> GetRegistered(Type type)
Parameters

type Type

The type.

Returns

System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaProperty>

A collection of Avalonia.AvaloniaProperty definitions.

GetRegisteredAttached Method

Gets all attached Avalonia.AvaloniaPropertys registered on a type.

public System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaProperty> GetRegisteredAttached(Type type)

Parameters

type Type

The type.

Returns

System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaProperty>

A collection of Avalonia.AvaloniaProperty definitions.

GetRegisteredDirect overloads

GetRegisteredDirect Method

public Avalonia.DirectPropertyBase<TValue><T> GetRegisteredDirect<T>(Avalonia.AvaloniaObject o, Avalonia.DirectPropertyBase<TValue><T> property)
Parameters

o Avalonia.AvaloniaObject

property Avalonia.DirectPropertyBase<TValue><T>

Type Parameters

T

Returns

Avalonia.DirectPropertyBase<TValue><T>

GetRegisteredDirect Method

Gets all direct Avalonia.AvaloniaPropertys registered on a type.

public System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaProperty> GetRegisteredDirect(Type type)
Parameters

type Type

The type.

Returns

System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaProperty>

A collection of Avalonia.AvaloniaProperty definitions.

GetRegisteredInherited Method

Gets all inherited Avalonia.AvaloniaPropertys registered on a type.

public System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaProperty> GetRegisteredInherited(Type type)

Parameters

type Type

The type.

Returns

System.Collections.Generic.IReadOnlyList<Avalonia.AvaloniaProperty>

A collection of Avalonia.AvaloniaProperty definitions.

IsRegistered overloads

IsRegistered Method

Checks whether a Avalonia.AvaloniaProperty is registered on a object.

public bool IsRegistered(object o, Avalonia.AvaloniaProperty property)
Parameters

o object

The object.

property Avalonia.AvaloniaProperty

The property.

Returns

bool

True if the property is registered, otherwise false.

IsRegistered Method

Checks whether a Avalonia.AvaloniaProperty is registered on a type.

public bool IsRegistered(Type type, Avalonia.AvaloniaProperty property)
Parameters

type Type

The type.

property Avalonia.AvaloniaProperty

The property.

Returns

bool

True if the property is registered, otherwise false.

Register Method

Registers a Avalonia.AvaloniaProperty on a type.

public void Register(Type type, Avalonia.AvaloniaProperty property)

Parameters

type Type

The type.

property Avalonia.AvaloniaProperty

The property.

Remarks

You won't usually want to call this method directly, instead use the Avalonia.AvaloniaProperty.Register<T1, T2>(string,<T>,bool,Avalonia.Data.BindingMode,Func{<T>,bool},Func{Avalonia.AvaloniaObject,<T>,<T>},bool) method.

RegisterAttached Method

Registers an attached Avalonia.AvaloniaProperty on a type.

public void RegisterAttached(Type type, Avalonia.AvaloniaProperty property)

Parameters

type Type

The type.

property Avalonia.AvaloniaProperty

The property.

Remarks

You won't usually want to call this method directly, instead use the Avalonia.AvaloniaProperty.RegisterAttached<T1, T2>(string,Type,<T>,bool,Avalonia.Data.BindingMode,Func{<T>,bool},Func{Avalonia.AvaloniaObject,<T>,<T>}) method.

UnregisterByModule Method

public bool UnregisterByModule(System.Collections.Generic.IEnumerable<Type> types)

Parameters

types System.Collections.Generic.IEnumerable<Type>

Returns

bool

Properties

NameDescription
InstanceGets the Avalonia.AvaloniaPropertyRegistry instance

Instance Property

Gets the Avalonia.AvaloniaPropertyRegistry instance

public Avalonia.AvaloniaPropertyRegistry Instance { get; set; }