IAvaloniaObject.

GetBaseValue<T>(StyledPropertyBase<T>, BindingPriority) Method

Summary

Gets an AvaloniaProperty base value.
Namespace
Avalonia
Containing Type
IAvaloniaObject

Syntax

Optional<T> GetBaseValue<T>(StyledPropertyBase<T> property, BindingPriority maxPriority)

Remarks

Gets the value of the property, if set on this object with a priority equal or lower to maxPriority, otherwise Empty. Note that this method does not return property values that come from inherited or default values.

Type Parameters

Name Description
T The type of the property.

Parameters

Name Type Description
property StyledPropertyBase<T> The property.
maxPriority BindingPriority The maximum priority for the value.

Return Value

Type Description
Optional<T>