StaticResourceExtension::ResourceKey Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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)

property Object^ ResourceKey {
	Object^ get();
	void set(Object^ value);

Property Value

Type: System::Object^

The resource key for a resource.

Exception Condition

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

.NET Framework
Available since 3.0
Return to top