AvaloniaObjectGetBaseValueT Method

Gets an AvaloniaProperty base value.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public Optional<T> GetBaseValue<T>(
	StyledProperty<T> property
)

Parameters

property  StyledPropertyT
The property.

Type Parameters

T

Return Value

OptionalT

Remarks

Gets the value of the property excluding animated values, otherwise Empty. Note that this method does not return property values that come from inherited or default values.

See Also