Aracılığıyla paylaş


ResourceContext Constructor

Definition

Creates a cloned ResourceContext object.

Note

ResourceContext constructor may be altered or unavailable for releases after Windows 8.1. Instead, use GetForCurrentView and Clone.

public:
 ResourceContext();
 ResourceContext();
public ResourceContext();
function ResourceContext()
Public Sub New ()

Remarks

In general, resources can be sensitive to scale. For that reason, a ResourceContext is generally associated with a specific view, and should be obtained using GetForCurrentView. (A view-independent ResourceContext can also be obtained using GetForViewIndependentUse.) If a ResourceContext is obtained using this constructor, it will be have scale associated with an arbitrary view. Do not make any assumptions in your app regarding this behavior.

Applies to