nerdexam
Microsoft

70-511 · Question #37

You are developing a Windows Presentation Foundation (WPF) application. The application contains stylized body text and heading text. The heading text is a slight variation of the body text. You…

The correct answer is A. Set the Value property of the style setter to point to a static resource. See the full explanation below for the reasoning.

Question

You are developing a Windows Presentation Foundation (WPF) application. The application contains stylized body text and heading text. The heading text is a slight variation of the body text. You need to ensure that if the body text changes, the heading text automatically inherits those changes. What should you do?

Options

  • ASet the Value property of the style setter to point to a static resource.
  • BSet the BasedOn property of the heading style to point to a static resource for the body text
  • CSet the Key property of the heading style to start with the name of the body text style.
  • DSet the TargetType property of the heading style to TextBlock.

How the community answered

(38 responses)
  • A
    74% (28)
  • B
    8% (3)
  • C
    5% (2)
  • D
    13% (5)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice