Some strings could also be set programmatically from code-behind files. To prepare a localized application, it is also necessary to translate them and present in the current language. In this recipe, you will learn how to use the
ResourceLoader class to programmatically get localized content.
To step through this recipe, you need the project created in the previous recipe.
To prepare an example that shows how to localize content programmatically, you need to perform the following steps:
MainPage.xamlfile as follows:
<Page (...)> <ScrollViewer> <StackPanel Padding="20"> (...) <Button x:Uid="BtnEntrySubmit" HorizontalAlignment="Stretch" ...