INameScope Interface

Summary

Defines a name scope.
graph TD Type["INameScope"] class Type type-node Type-.->Implementing0["ReactiveWindow<TViewModel>"] click Implementing0 "/api/Avalonia/ReactiveWindow_1" Type-.->Implementing1["ReactiveUserControl<TViewModel>"] click Implementing1 "/api/Avalonia/ReactiveUserControl_1" Type-.->Implementing2["UserControl"] click Implementing2 "/api/Avalonia.Controls/UserControl" Type-.->Implementing3["DevTools"] click Implementing3 "/api/Avalonia.Diagnostics/DevTools" Type-.->Implementing4["EventsView"] click Implementing4 "/api/Avalonia.Diagnostics.Views/EventsView" Type-.->Implementing5["NameScope"] click Implementing5 "/api/Avalonia.Controls/NameScope" Type-.->Implementing6["TreePageView"] click Implementing6 "/api/Avalonia.Diagnostics.Views/TreePageView" Type-.->Implementing7["RoutedViewHost"] click Implementing7 "/api/Avalonia/RoutedViewHost" Type-.->Implementing8["Window"] click Implementing8 "/api/Avalonia.Controls/Window" Type-.->Implementing9["EmbeddableControlRoot"] click Implementing9 "/api/Avalonia.Controls.Embedding/EmbeddableControlRoot"

Syntax

public interface INameScope

Events

Name Type Summary
Registered EventHandler<NameScopeEventArgs>
Raised when an element is registered with the name scope.
Unregistered EventHandler<NameScopeEventArgs>
Raised when an element is unregistered with the name scope.

Methods

Name Value Summary
Find(string) object
Finds a named element in the name scope.
Register(string, object) void
Registers an element in the name scope.
Unregister(string) void
Unregisters an element with the name scope.

Extension Methods

Name Value Summary
Find<T>(string) T
Finds a named element in an INameScope.
Get<T>(string) T
Gets a named element from an INameScope or throws if no element of the requested name was found.