NameScopeExtensions.

Get<T>(ILogical, string) Method

Summary

Gets a named element from an INameScope or throws if no element of the requested name was found.
Namespace
Avalonia.Controls
Containing Type
NameScopeExtensions

Syntax

public static T Get<T>(this ILogical anchor, string name) where T : class

Type Parameters

Name Description
T The element type.

Parameters

Name Type Description
anchor ILogical The control to take the name scope from.
name string The name.

Return Value

Type Description
T The named element.