Microsoft
70-511 · Question #78
You are developing a Windows Presentation Foundation (WPF) application. You are writing data templates for a calendar. You must use the Weekend template for weekends and the Weekday template for…
The correct answer is D. <ListBox ItemTemplateSelector=" {StaticResource WeekendSelector}"/>. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application. You are writing data templates for a calendar. You must use the Weekend template for weekends and the Weekday template for weekdays. The Window markup is as follows. (Line numbers are included for reference only.) You need to ensure that the Weekend and Weekday templates are applied correctly to the ListBox control. Which markup segment should you insert at line 11?
Exhibit
Options
- A<ListBox ItemTemplateSelector="{Binding WeekendSelector}"/>
- B<ListBox ItemTemplate="{StaticResource WeekendSelector} "/>
- C<ListBox ItemTemplate=" {Binding WeekendSelector} "/>
- D<ListBox ItemTemplateSelector=" {StaticResource WeekendSelector}"/>
How the community answered
(24 responses)- A4% (1)
- B8% (2)
- C17% (4)
- D71% (17)
Community Discussion
No community discussion yet for this question.
