ResourceDictionary.OnGettingValue Method (Object, Object, Boolean)

.NET Framework (current version)
 
System_CAPS_noteNote

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

Occurs when the ResourceDictionary receives a request for a resource.

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

protected virtual void OnGettingValue(
	object key,
	ref object value,
	out bool canCache
)

Parameters

key
Type: System.Object

The key of the resource to get.

value
Type: System.Object

The value of the requested resource.

canCache
Type: System.Boolean

true if the resource can be saved and used later; otherwise, false.

.NET Framework
Available since 4.5
Return to top
Show: