AttachedShadowElementContext.GetResource<T>(String) Method

Definition

Retries a resource with the specified key and type

C#
public T GetResource<T> (string key);

Type Parameters

T

The type of the resource being retrieved.

Parameters

key
String

Key to use to lookup the resource.

Returns

T

The resource if available, otherwise default value.

Applies to

Producto Versiones
Windows Community Toolkit 7.1.0