StyledPropertyBase<TValue>.

StyledPropertyBase(string, Type, StyledPropertyMetadata<TValue>, bool, Func<TValue, bool>, Action<IAvaloniaObject, bool>) Constructor

Summary

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

Syntax

protected StyledPropertyBase(string name, Type ownerType, StyledPropertyMetadata<TValue> metadata, bool inherits = false, Func<TValue, bool> validate = null, Action<IAvaloniaObject, bool> notifying = null)

Parameters

Name Type Description
name string The name of the property.
ownerType Type The type of the class that registers the property.
metadata StyledPropertyMetadata<TValue> The property metadata.
inherits bool Whether the property inherits its value.
validate Func<TValue, bool> A value validation callback.
notifying Action<IAvaloniaObject, bool> A Notifying callback.

Return Value

Type Description
void