HasAttribute(Control, String) Method

Definition

Assembly HeadlessTestingFramework.dll

Checks if the element has a specific attribute.

public static bool HasAttribute(Control element, string attributeName)

Parameters

element
Avalonia.Controls.Control

The element to check.

attributeName
String

The attribute name.

Returns

Boolean
True if the attribute exists and has a non-null value.