This documentation is archived and is not being maintained.

XamlParseException.KeyContext Property

Gets or sets the XAML key value of the item in a dictionary where the exception occurred.

Namespace:  System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Object KeyContext { get; internal set; }
Members of this class are either not typically used in XAML, or cannot be used in XAML.

Property Value

Type: System.Object
The XAML key value.

If KeyContext is set, the XAML exception occurred in the context of a dictionary item and KeyContext is the XAML key value of that item.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5, 3.0
Show: