Which XAML markup should you use?

You are developing a Windows Store app.
The app will support multiple languages. The app has a page named MainPage. The resource file of
the page is named MainPage.resw and is located in a folder named /Resources/en-us/.
MainPage.resw contains the data shown in the following table.

You need to parameterize a TextBlock control by using the data in the resource file.
Which XAML markup should you use?

You are developing a Windows Store app.
The app will support multiple languages. The app has a page named MainPage. The resource file of
the page is named MainPage.resw and is located in a folder named /Resources/en-us/.
MainPage.resw contains the data shown in the following table.

You need to parameterize a TextBlock control by using the data in the resource file.
Which XAML markup should you use?

A.
<TextBlock x:Uid=”Greeting”/>

B.
<TextBlock x:Uid=”/MainPage/GreetingTextBlock”/>

C.
<TextBlock x:name=’VResources/MainPage/GreetingTextBlock”/>

D.
<TextBlock x:name=”Greeting”/>

Explanation:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh965326.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *