DirectProperty<TOwner, TValue>.

DirectProperty(string, Func<TOwner, TValue>, Action<TOwner, TValue>, DirectPropertyMetadata<TValue>) Constructor

Summary

Initializes a new instance of the DirectProperty<TOwner, TValue> class.
Namespace
Avalonia
Containing Type
DirectProperty<TOwner, TValue>

Syntax

public DirectProperty(string name, Func<TOwner, TValue> getter, Action<TOwner, TValue> setter, DirectPropertyMetadata<TValue> metadata)

Parameters

Name Type Description
name string The name of the property.
getter Func<TOwner, TValue> Gets the current value of the property.
setter Action<TOwner, TValue> Sets the value of the property. May be null.
metadata DirectPropertyMetadata<TValue> The property metadata.

Return Value

Type Description
void