nerdexam
Microsoft

70-511 · Question #77

You are developing a Windows Presentation Foundation (WPF) application. A TextBlock control has DataContext bound to a static resource named Book. The ToolTip attribute of TextBlock displays the…

The correct answer is D. <TextBlock. See the full explanation below for the reasoning.

Question

You are developing a Windows Presentation Foundation (WPF) application. A TextBlock control has DataContext bound to a static resource named Book. The ToolTip attribute of TextBlock displays the full book titles. You create a converter named TrimTitleConverter to shorten the book titles to three words in the Text attribute of the TextBox. You add the converter to the Resources section of the MainWindow.xaml file as follows. (Line numbers are included for reference only.) You need to ensure that the shortened book titles appear only in the Text attribute of TextBlock. Which markup segment should you use to replace lines 06 through 09?

Exhibit

70-511 question #77 exhibit

Options

  • A<TextBlock
  • B<TextBlock
  • C<TextB1ock
  • D<TextBlock

How the community answered

(44 responses)
  • A
    9% (4)
  • B
    5% (2)
  • C
    2% (1)
  • D
    84% (37)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice