2014-03-13 68 views
0

我是Windows商店應用程序的新手。現在我爲法語[字符串 - > fr-FR - > Resources.resw]和英語[字符串 - > en-US - > Resources.resw]創建資源文件的文件夾。 並分別聲明Heading1 =「hdFREN」和Heading1 =「hdENG」。在Windows Store應用程序中調用TextBlock控件的資源名稱

現在我必須調用Heading1到TextBlock text =「」..如何在TextBlock控件中聲明文本???

+0

..我宣佈本作的Windows Phone應用程序,但它不是在Windows應用商店的工作應用.. – jeyrus

回答

0

實際上,我在根文件夾[字符串 - > fr-FR - > Resources.resw]和英語[字符串 - > en-US - > Resources.resw]中創建了resources.resw。然後我創建手動LocalizedStrings

enter code here 

公共類LocalizedStrings {

private static Resources _localizedResources = new Resources(); 

public Resources LocalizedResources { get { return _localizedResources; } } 

}

現在我不能調用資源文件。它顯示錯誤

相關問題