INameScope Interface

Defines a name scope.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
[NotClientImplementableAttribute]
public interface INameScope

Properties

IsCompleted Returns whether further registrations are allowed on the scope

Methods

Complete Marks the name scope as completed, no further registrations will be allowed
Find(String) Finds a named element in the name scope, returns immediately, doesn't traverse the name scope stack
FindAsync(String) Finds a named element in the name scope, waits for the scope to be completely populated before returning null Returned task is configured to run any continuations synchronously.
Register(String, Object) Registers an element in the name scope.

Extension Methods

FindT(String) Finds a named element in an INameScope.
(Defined by NameScopeExtensions)
GetT(String) Gets a named element from an INameScope or throws if no element of the requested name was found.
(Defined by NameScopeExtensions)

See Also