Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.9 KB

namedresource_resolveall_1183893306.md

File metadata and controls

32 lines (22 loc) · 1.9 KB
-api-id -api-type
M:Windows.ApplicationModel.Resources.Core.NamedResource.ResolveAll(Windows.ApplicationModel.Resources.Core.ResourceContext)
winrt method

Windows.ApplicationModel.Resources.Core.NamedResource.ResolveAll

-description

Resolves this NamedResource object against a supplied context and returns a list of all possible candidates in preference order.

-parameters

-param resourceContext

The context against which the NamedResource should be resolved.

-returns

A list of ResourceCandidate objects, in order of preference. The object in first position in the list is the most appropriate candidate for the corresponding context, and the object in last position is the least appropriate.

-remarks

The resource management system for UWP apps supports the tailoring of resources for scale. Starting in Windows 8.1, different views owned by an app are able to display simultaneously on different display devices that may use different scales. In this way, scale is a per-view characteristic.

Since the ResolveAll method returns all candidates for a NamedResource in relation to a runtime context, and since the scale qualifier of a ResourceContext depends on the associated view, the ResolveAll should always be called passing a ResourceContext object obtained from the view in which the resource will be used.

See the ResourceContext.GetForCurrentView method.

-examples

-see-also

ResourceContext, ResourceContext.GetForCurrentView