Skip to main content

GetBaseValue<T> Method

Gets an AvaloniaProperty base value.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Optional<T> GetBaseValue<T>(
StyledProperty<T> property
)

Parameters​

  StyledProperty(T)
The property.

Type Parameters​

Return Value​

Optional(T)

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​

Reference​

AvaloniaObject Class
Avalonia Namespace