Microsoft
70-355 · Question #49
You are developing a Universal Windows Platform (UWP) app. You have the following XAML code. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Viewbox…
1. Create a folder named Strings and two subfolders named en-us and fr-fr. 2. In the en-us and fr-fr folders, create new resource file named Resources.resw. 3. In Resources.resw, add the localized text. 4. For Resources.resw, set the Build Action to Embedded Resource.
Implement coding patterns
Question
You are developing a Universal Windows Platform (UWP) app. You have the following XAML code. <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Viewbox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" Grid.Row="1"> <TextBlock x:Uid="Message" Text="Hello"/> </Viewbox> </Grid> You need to localize the app so that it displays "Bonjour" if the current language in Windows is set to French. Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Explanation
- Create a folder named Strings and two subfolders named en-us and fr-fr.
- In the en-us and fr-fr folders, create new resource file named Resources.resw.
- In Resources.resw, add the localized text.
- For Resources.resw, set the Build Action to Embedded Resource.
Topics
#UWP#localization#XAML#resource files
Community Discussion
No community discussion yet for this question.