Skip to main content

GetDiagnostic Method

Gets a diagnostic for a AvaloniaProperty on a AvaloniaObject.

Definition

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

public static AvaloniaPropertyValue GetDiagnostic(
this AvaloniaObject o,
AvaloniaProperty property
)

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