ResourceContext ResourceContext ResourceContext ResourceContext ResourceContext Constructor



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

Creates a cloned ResourceContext object.

public : ResourceContext()
ResourceContext() const;
public ResourceContext()
Public Sub New()
var resourceContext = new resourceContext();


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.