Skip to main content

INameScope Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

Defines a name scope.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[NotClientImplementableAttribute]
public interface INameScope
View Source

Properties

IsCompletedReturns 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

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

See Also

Reference

Avalonia.Controls Namespace