Contains(Visual) Method

Definition

Assembly HeadlessTestingFramework.dll

Checks if a visual contains a descendant of a specific type.

public static bool Contains<T>(this Visual root)
    where T : class

Type parameters

T
The type to check for.

Parameters

root
Avalonia.Visual

The root visual to search from.

Returns

Boolean
True if a descendant of the specified type exists.