C# Class InTheHand.ApplicationModel.Resources.ResourceLoader

Provides simplified access to app resources such as app UI strings.
PlatformVersion supported Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later
Show file Open project: inthehand/Charming Class Usage Examples

Public Methods

Method Description
GetForCurrentView ( ) : ResourceLoader

Gets a ResourceLoader object for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context associated with the current view.

GetForViewIndependentUse ( ) : ResourceLoader

Gets a ResourceLoader object for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context that's not associated with any view.

GetString ( string resource ) : string

Returns the most appropriate string value of a resource, specified by resource identifier, for the default ResourceContext of the view in which the ResourceLoader was obtained using ResourceLoader.GetForCurrentView.

Private Methods

Method Description
ResourceLoader ( ResourceManager manager ) : System
ResourceLoader ( Windows loader ) : System

Method Details

GetForCurrentView() public static method

Gets a ResourceLoader object for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context associated with the current view.
public static GetForCurrentView ( ) : ResourceLoader
return ResourceLoader

GetForViewIndependentUse() public static method

Gets a ResourceLoader object for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context that's not associated with any view.
public static GetForViewIndependentUse ( ) : ResourceLoader
return ResourceLoader

GetString() public method

Returns the most appropriate string value of a resource, specified by resource identifier, for the default ResourceContext of the view in which the ResourceLoader was obtained using ResourceLoader.GetForCurrentView.
public GetString ( string resource ) : string
resource string The resource identifier of the resource to be resolved.
return string