Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResourceContext.ResourceContext constructor

Applies to Windows and Windows Phone

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

Creates a cloned ResourceContext object.

Syntax


var resourceContext = new Windows.ApplicationModel.Resources.Core.ResourceContext();

Parameters

This constructor has no parameters.

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.

Also, the ResourceContext will behave like a cloned context. In particular, if a qualifier value is programmatically overridden, this will not affect the default ResourceContext associated with any app view, and any changes to default contexts will not be reflected in this context. (See Clone.)

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

End of client support

Windows 8.1

End of server support

Windows Server 2012 R2

Namespace

Windows.ApplicationModel.Resources.Core
Windows::ApplicationModel::Resources::Core [C++]

Metadata

Windows.winmd

See also

ResourceContext

 

 

Show:
© 2014 Microsoft