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 INameScope nameScope, string name) where T : class
Type Parameters
Name | Description |
---|---|
T | The element type. |
Parameters
Name | Type | Description |
---|---|---|
nameScope | INameScope | The name scope. |
name | string | The name. |
Return Value
Type | Description |
---|---|
T | The named element. |