nerdexam
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

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}">

How the community answered

(20 responses)
  • A
    10% (2)
  • B
    5% (1)
  • C
    5% (1)
  • D
    80% (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.

Full 70-511 Practice