Skip to main content

GetBaseValue(AvaloniaObject, AvaloniaProperty) Method

Gets an AvaloniaProperty base value.

Definition​

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

public static Object? GetBaseValue(
this AvaloniaObject target,
AvaloniaProperty property
)

Parameters​

  AvaloniaObject
The object.
  AvaloniaProperty
The property.

Return Value​

Object

Usage Note​

In Visual Basic and C#, you can call this method as an instance method on any object of type AvaloniaObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks​

For styled properties, gets the value of the property excluding animated values, otherwise UnsetValue. Note that this method does not return property values that come from inherited or default values. For direct properties returns the current value of the property.

See Also​

Reference​

AvaloniaObjectExtensions Class
GetBaseValue Overload
Avalonia Namespace