HasClass(Control, String) Method

Definition

Assembly HeadlessTestingFramework.dll

Checks if the element has a specific class.

public static bool HasClass(Control element, string className)

Parameters

element
Avalonia.Controls.Control

The element to check.

className
String

The class name.

Returns

Boolean
True if the element has the class.