Summary
Initializes a new instance of the
StyledPropertyMetadata<TValue>
class.
- Namespace
- Avalonia
- Containing Type
- Styled
Property Metadata <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 |
The default value of the property. |
defaultBindingMode | BindingMode | The default binding mode. |
coerce | Func |
A value coercion callback. |
Return Value
Type | Description |
---|---|
void |