nerdexam
Microsoft

70-511 · Question #39

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a form named frmMain that contains a button named btnSave. You create a…

The correct answer is C. <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="00:00:01" From="0". See the full explanation below for the reasoning.

Question

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a form named frmMain that contains a button named btnSave. You create a ProgressBar control named saveProgress. Initially, saveProgress is not displayed on frmMain. When a user clicks btnSave, you have the following requirements:

  • saveProgress is slightly visible after 0.2 seconds
  • saveProgress is fully visible after 1 second

You need to declare the corresponding storyboard. You write the following code fragment. (Line numbers are included for reference only.) 01 <Storyboard xiKey" animateProgress" TaEgetName="saveProgress"> 03 </Storyboard> Which code fragment should you insert at line 02 to complete the declaration?

Options

  • A<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
  • B<ObjectAnimationUsingKeyFrames Storyboard. TargetProperty="Visibility">
  • C<DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="00:00:01" From="0"
  • D<DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="l" From="0" To="l" />

How the community answered

(52 responses)
  • A
    12% (6)
  • B
    8% (4)
  • C
    77% (40)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice