nerdexam
Microsoft

70-511 · Question #204

70-511 Question #204: Real Exam Question with Answer & Explanation

The correct answer is D. <Border Background="TemplateBinding ListBox.Background}">. See the msdn link with this example:

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

70-511 question #204 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}">

Explanation

See the msdn link with this example:

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice