C# 클래스 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
파일 보기 프로젝트 열기: inthehand/Charming 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
ResourceLoader ( ResourceManager manager ) : System
ResourceLoader ( Windows loader ) : System

메소드 상세

GetForCurrentView() 공개 정적인 메소드

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
리턴 ResourceLoader

GetForViewIndependentUse() 공개 정적인 메소드

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
리턴 ResourceLoader

GetString() 공개 메소드

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.
리턴 string