StaticResourceResolvedEventArgs.ResourceKey Property

Definition

The key for the requested resource.

C#
public object ResourceKey { get; }

Property Value

The key for the requested resource.

Remarks

The key is initially assigned by the x:Key directive if the resource is created in markup, or it's provided as the key parameter when calling the System.Windows.ResourceDictionary.Add method if the resource is created in code.

Applies to

Product Versions
.NET Framework 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9