Microsoft
70-511 · Question #183
You are developing a Windows Presentation Foundation (WPF) application that displays pricing and inventory Information. A list box's ItemsSource property has decimal and string types. Decimals…
The correct answer is B. <DataTemplate x:Key="String" Template="clr:String">. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application that displays pricing and inventory Information. A list box's ItemsSource property has decimal and string types. Decimals represent price and strings represent messages such as "Discontinued" The following markup is defined as follows. (Line numbers are included for reference only.) You need to ensure that data templates are used to format the strings without changes and the decimals as currency. Which markup segment should you insert at line 05?
Exhibit
Options
- A<DataTemplate x:Key="clr:String">
- B<DataTemplate x:Key="String" Template="clr:String">
- C<DataTemplate DataType="{x:Type clr:String} ,/>
- D<DataTemplate DataType=, clr : String">
How the community answered
(35 responses)- A9% (3)
- B74% (26)
- C14% (5)
- D3% (1)
Community Discussion
No community discussion yet for this question.
