Advertisement
Guest User

Untitled

a guest
Mar 5th, 2016
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. <mahapps:TransitioningContentControl
  2. Content="{Binding Driver.sessionStats.gameStatus}"
  3. Margin="0,-17,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="5" Foreground="{DynamicResource LabelTextBrush}" FontSize="14" Width="480" Height="26"
  4. Transition="Custom">
  5. <mahapps:TransitioningContentControl.CustomVisualStates>
  6. <VisualState x:Name="CustomTransition">
  7. <Storyboard>
  8. <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
  9. Storyboard.TargetName="CurrentContentPresentationSite"
  10. Storyboard.TargetProperty="(UIElement.Opacity)">
  11. <SplineDoubleKeyFrame KeyTime="00:00:00"
  12. Value="0" />
  13. <SplineDoubleKeyFrame KeyTime="00:00:00.700"
  14. Value="1" />
  15. </DoubleAnimationUsingKeyFrames>
  16. <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
  17. Storyboard.TargetName="PreviousContentPresentationSite"
  18. Storyboard.TargetProperty="(UIElement.Opacity)">
  19. <SplineDoubleKeyFrame KeyTime="00:00:00"
  20. Value="1" />
  21. <SplineDoubleKeyFrame KeyTime="00:00:00.700"
  22. Value="0" />
  23. </DoubleAnimationUsingKeyFrames>
  24. </Storyboard>
  25. </VisualState>
  26. </mahapps:TransitioningContentControl.CustomVisualStates>
  27. </mahapps:TransitioningContentControl>
  28.  
  29. <mahapps:TransitioningContentControl
  30. Content="{Binding Driver.sessionStats.jobStatus}"
  31. Margin="0,-17,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="6" Foreground="{DynamicResource LabelTextBrush}" FontSize="14" Width="480" Height="26"
  32. Transition="Custom">
  33. <mahapps:TransitioningContentControl.CustomVisualStates>
  34. <VisualState x:Name="CustomTransition"> <!-- ALREADY DEFINED IF HERE, NOT DEFINED IF NOT SHOULD NOT HAVE TO COPY AND PASTE THIS SECTION OVER AND OVER AGAIN-->
  35. <Storyboard>
  36. <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
  37. Storyboard.TargetName="CurrentContentPresentationSite"
  38. Storyboard.TargetProperty="(UIElement.Opacity)">
  39. <SplineDoubleKeyFrame KeyTime="00:00:00"
  40. Value="0" />
  41. <SplineDoubleKeyFrame KeyTime="00:00:00.700"
  42. Value="1" />
  43. </DoubleAnimationUsingKeyFrames>
  44. <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
  45. Storyboard.TargetName="PreviousContentPresentationSite"
  46. Storyboard.TargetProperty="(UIElement.Opacity)">
  47. <SplineDoubleKeyFrame KeyTime="00:00:00"
  48. Value="1" />
  49. <SplineDoubleKeyFrame KeyTime="00:00:00.700"
  50. Value="0" />
  51. </DoubleAnimationUsingKeyFrames>
  52. </Storyboard>
  53. </VisualState>
  54. </mahapps:TransitioningContentControl.CustomVisualStates>
  55. </mahapps:TransitioningContentControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement