StyledPropertyMetadata<TValue>.

StyledPropertyMetadata(Optional<TValue>, BindingMode, Func<IAvaloniaObject, TValue, TValue>) Constructor

Summary

Initializes a new instance of the StyledPropertyMetadata<TValue> class.
Namespace
Avalonia
Containing Type
StyledPropertyMetadata<TValue>

Syntax

public StyledPropertyMetadata(Optional<TValue> defaultValue = default(Optional<TValue>), BindingMode defaultBindingMode = Default, Func<IAvaloniaObject, TValue, TValue> coerce = null)

Parameters

Name Type Description
defaultValue Optional<TValue> The default value of the property.
defaultBindingMode BindingMode The default binding mode.
coerce Func<IAvaloniaObject, TValue, TValue> A value coercion callback.

Return Value

Type Description
void