nerdexam
Microsoft

70-511 · Question #64

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a Button control for the application. You need to ensure that the application meets the…

The correct answer is A. Create a template. Declare a VisualState element in the template. See the full explanation below for the reasoning.

Question

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a Button control for the application. You need to ensure that the application meets the following requirements:

  • When the mouse pointer is over the Button control, the background

color of the button is set to red and the Button control appears bigger.

  • When the mouse pointer is not over the Button control, the button

returns to its original state. What should you do?

Options

  • ACreate a template. Declare a VisualState element in the template.
  • BCreate a StoryBoard animation.
  • CCreate a ScaleTransform class.
  • DAdd a method named ChangeAppearance in the code-behind file.

How the community answered

(44 responses)
  • A
    70% (31)
  • B
    16% (7)
  • C
    9% (4)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice