NoesisGUI

NameScope Class

namespace Noesis | MSDN

Store relationships between the XAML defined names of objects and their instances.

NameScope is generally more devoted to supplying infrastructure than for common user code scenarios that involve working with a XAML namescope. For most scenarios, the FindName methods exposed on FrameworkElement are more appropriate methods to call to search for elements by XAML-defined name. The Name properties exposed by FrameworkElement are more appropriate properties to use to set the initial name as markup attributes.

The various methods of NameScope are used by base elements and other classes that maintain XAML namescopes in order to support RegisterName and FindName. You generally use the API in the NameScope class only if you are replacing or augmenting the base element behavior for how they process XAML namescopes for root elements of a XAML page, and as part of templates (which use a separate XAML namescope from the rest of the page).

Inheritance Hierarchy

NameScope

INDEX Class Hierarchy Index

Properties

NameScope has no properties

Attached Properties

Name Description
 NameScope Gets or sets the attached NameScope property

Methods

Name Description
 FindName(name) Returns an object that has the provided identifying name
 FindObject(obj) Finds the name of an object if it is registered in the NameScope. Returns null if object was not found
 RegisterName(name, obj) Registers the provided name into the current XAML namescope
 UnregisterName(name) Unregisters the provided name from the current XAML namescope
 UpdateName(name, obj) Updates previously registered item with new one. This is required to refresh Binginds when freezables are cloned during animations

Events

NameScope has no events

© 2017 Noesis Technologies