GetNamedControls(Visual) Method

Definition

Assembly HeadlessTestingFramework.dll

Gets all named controls in the tree. If duplicate names exist, only the first occurrence is kept.

public static Dictionary<string, Control> GetNamedControls(this Visual root)

Parameters

root
Avalonia.Visual

The root visual to search from.

Returns

Dictionary<String, Control>
A dictionary of control names to controls.