Microsoft
70-511 · Question #204
You are developing a Windows Presentation Foundation (WPF) application. The window has the following markup. (Line numbers are included for reference only.) You need to ensure that all ListBox…
The correct answer is D. <Border Background="TemplateBinding ListBox.Background}">. See the msdn link with this example:
Manage application lifecycle
Question
You are developing a Windows Presentation Foundation (WPF) application. The window has the following markup. (Line numbers are included for reference only.) You need to ensure that all ListBox controls have a border that matches the background color of the ListBox template. Which markup segment should you insert at line 15?
Exhibit
Options
- A<Border Background="TemplateBinding ListBox.Background)">
- B<Border Background="{Binding ListBox.BackGround)">
- C<Border Background="<Binding ListBox.Background)">
- D<Border Background="TemplateBinding ListBox.Background}">
How the community answered
(20 responses)- A10% (2)
- B5% (1)
- C5% (1)
- D80% (16)
Explanation
See the msdn link with this example:
Topics
#WPF#TemplateBinding#XAML syntax#control templates
Community Discussion
No community discussion yet for this question.
