nerdexam
Microsoft

70-511 · Question #112

You are developing a Windows Presentation Foundation (WPF) application with multiple windows. The majority of the buttons within the application are styled consistently. However, three buttons…

The correct answer is D. Create the styles in the application resources. would expect TargetType for the default Style and key for the custom Style in the Application

Manage application lifecycle

Question

You are developing a Windows Presentation Foundation (WPF) application with multiple windows. The majority of the buttons within the application are styled consistently. However, three buttons within the application must be styled differently. You need to ensure that the application can handle this styling requirement. What should you do?

Options

  • ACreate the styles in the application resources.
  • BCreate the styles in the main window resources.
  • CCreate the styles in the main window resources.
  • DCreate the styles in the application resources.

How the community answered

(36 responses)
  • A
    11% (4)
  • B
    3% (1)
  • C
    17% (6)
  • D
    69% (25)

Explanation

would expect TargetType for the default Style and key for the custom Style in the Application

Topics

#WPF#styles#application resources#resource scoping

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice