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
Afficher le fichier Open project: inthehand/Charming Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
ResourceLoader ( ResourceManager manager ) : System
ResourceLoader ( Windows loader ) : System

Method Details

GetForCurrentView() public static méthode

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
Résultat ResourceLoader

GetForViewIndependentUse() public static méthode

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
Résultat ResourceLoader

GetString() public méthode

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.
Résultat string