Microsoft
70-511 · Question #159
You are developing a Windows Presentation Foundation (WPF) application. The application contains stylized body text and heading test. 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 test. 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
(21 responses)- A76% (16)
- B5% (1)
- C10% (2)
- D10% (2)
Community Discussion
No community discussion yet for this question.