Skip to main content

Register Method

Registers a AvaloniaProperty on a type.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public void Register(
Type type,
AvaloniaProperty property
)

Parameters​

  Type
The type.
  AvaloniaProperty
The property.

Remarks​

You won't usually want to call this method directly, instead use the Register(TOwner, TValue)(String, TValue, Boolean, BindingMode, Func(TValue, Boolean), Func(AvaloniaObject, TValue, TValue), Boolean) method.

See Also​

Reference​

AvaloniaPropertyRegistry Class
Avalonia Namespace