Item Property
Collapse the table of content
Expand the table of content

NameScope.Item Property

Gets or sets the item with the specified key.

Namespace:  System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public Object this[
	string key
] { get; set; }


Type: System.String
The string name for the XAML name mapping to get or set.

Property Value

Type: System.Object
The value of the object mapped by the XAML name provided as key.


IDictionary<TKey, TValue>.Item[TKey]


key is provided as null.


value is provided as null for a set operation.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

© 2016 Microsoft