Advertisement
Guest User

Untitled

a guest
Mar 4th, 2016
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. <mahapps:TransitioningContentControl x:Name="customTransitioning"
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement