ResourceContext.GetForViewIndependentUse ResourceContext.GetForViewIndependentUse ResourceContext.GetForViewIndependentUse ResourceContext.GetForViewIndependentUse ResourceContext.GetForViewIndependentUse Method

Definition

Gets a default ResourceContext not associated with any view.

public : static ResourceContext GetForViewIndependentUse()
static ResourceContext GetForViewIndependentUse() const;
public static ResourceContext GetForViewIndependentUse()
Public Shared Function GetForViewIndependentUse() As ResourceContext
var resourceContext = Windows.ApplicationModel.Resources.Core.ResourceContext.getForViewIndependentUse();

Returns

Remarks

By default, no scale qualifier value is set in the ResourceContext returned by this method. Unless and until a scale qualifier value is set programmatically, the returned ResourceContext does not support any operations that involve the scale qualifier, including reading the scale qualifier value or resolving resource candidates that are qualified for scale.

This method fails if it is called in a windowless thread.