ControlExtensions.

FindControl<T>(IControl, string) Method

Summary

Finds the named control in the scope of the specified control.
Namespace
Avalonia.Controls
Containing Type
ControlExtensions

Syntax

public static T FindControl<T>(this IControl control, string name) where T : class, IControl

Type Parameters

Name Description
T The type of the control to find.

Parameters

Name Type Description
control IControl The control to look in.
name string The name of the control to find.

Return Value

Type Description
T The control or null if not found.