Microsoft
70-355 · Question #54
70-355 Question #54: Real Exam Question with Answer & Explanation
Sign in or unlock 70-355 to reveal the answer and full explanation for question #54. The question stem and answer options stay visible for context.
Question
You want to animate the background color of a StackPanel in a Universal Windows Platform (UWP) app whenever the panel receives the focus.
Which code snippet should you use to perform the animation?
Options
- A<StackPanel GotFocus="OnPanelHover"> <Storyboard x:Name="AnimatePanel"> <ColorAnimation Storyboard.TargetName="PanelBrush" Storyboard.TargetProperty="Color" From="Blue" To="Aqua" Duration="0:0:10" /> </Storyboard> <StackPanel.Background> <SolidColorBrush x:Name="PanelBrush" Color="Blue"/> </StackPanel.Background> </StackPanel>
- B<StackPanel GotFocus="OnPanelHover"> <StackPanel.Resources> <Storyboard x:Name="AnimatePanel"> <ColorAnimation Storyboard.TargetName="PanelBrush" Storyboard.TargetProperty="Color" From="Blue" To="HAqua" Duration="0:0:10" /> </Storyboard> </StackPanel.Resources> <StackPanel.Background> <SolidColorBrush x:Name="Pane lBrush" Color="Blue"/> </StackPanel.Background> </StackPanel>
- C<StackPanel GotFocus="OnPanelHover"> <StackPanel.Resources> <Storyboard x:Name="AnimatePanel"> <ColorAnimation Storyboard.TargetName="PanelBrush" Storyboard.TargetProperty="Color" From="Blue" To="Aqua" Duration="0:0:10" /> </Storyboard> </StackPanel.Resources> <StackPanel.Background> <SolidColorBrush x:Name="PanelBrush" Color="Blue"/> </StackPanel.Background> </StackPanel>
- D<StackPanel GotFocus="OnPanelHover"> <StackPanel.Resources> <Storyboard x:Name="AnimatePanel"> <ColorAnimation Storyboard.TargetName="PanelBrush" Storyboard.TargetProperty="Color" From="Blue" To="Aqua" Duration="0:0:10" /> </Storyboard> </StackPanel.Resources> <StackPanel.Background> <SolidColorBrush x:Name="Pane lBrush" Color="Blue"/> </StackPanel.Background> </StackPanel>
Unlock 70-355 to see the answer
You've previewed enough free 70-355 questions. Unlock 70-355 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.