GetBaseValue(AvaloniaObject, AvaloniaProperty) Method
Gets an AvaloniaProperty base value.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static Object? GetBaseValue(
this AvaloniaObject target,
AvaloniaProperty property
)
<ExtensionAttribute>
Public Shared Function GetBaseValue (
target As AvaloniaObject,
property As AvaloniaProperty
) As Object
[<ExtensionAttribute>]
static member GetBaseValue :
target : AvaloniaObject *
property : AvaloniaProperty -> Object
Parameters
- AvaloniaObject
- The object.
- AvaloniaProperty
- The property.
Return Value
ObjectUsage 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