문제

When I bind a TextBlock.Text to LocalizedResources.ApplicationTitle, at design time it displays 'MY APPLICATION'. I searched through the code and couldn't find where this string literal is defined, or generally, how do I define design time value for localized strings?

도움이 되었습니까?

해결책

Localized string resources is saved in AppResources.resx. And it is used in design time as well as in run time.

You can edit the .resx file in VS to add localized string values :

enter image description here

Practical reason for separating the resources in .resx file is, you can add string resources for other locale by simply adding another .resx file with corresponding culture info code suffix.

Further reference : How to build a localized app for Windows Phone 8

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top