Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

StaticResourceExtension.ResourceKey Property

 

Gets or sets the key value passed by this static resource reference. They key is used to return the object matching that key in resource dictionaries.

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

public object ResourceKey { get; set; }

Property Value

Type: System.Object

The resource key for a resource.

Exception Condition
ArgumentNullException

Specified value as null, either through markup extension usage or explicit construction.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft