GetDiagnostic Method
Gets a diagnostic for a AvaloniaProperty on a AvaloniaObject.
Definition
Namespace: Avalonia.Diagnostics
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static AvaloniaPropertyValue GetDiagnostic(
this AvaloniaObject o,
AvaloniaProperty property
)
<ExtensionAttribute>
Public Shared Function GetDiagnostic (
o As AvaloniaObject,
property As AvaloniaProperty
) As AvaloniaPropertyValue
[<ExtensionAttribute>]
static member GetDiagnostic :
o : AvaloniaObject *
property : AvaloniaProperty -> AvaloniaPropertyValue
Parameters
- AvaloniaObject
- The object.
- AvaloniaProperty
- The property.
Return Value
AvaloniaPropertyValue
A AvaloniaPropertyValue that can be used to diagnose the state of the property on the 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).
See Also
Reference
AvaloniaObjectExtensions Class
Avalonia.Diagnostics Namespace