Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Whats wrong with my OutTransition Storyboard?...

$
0
0

Hi,

My "StudyUIInTransition" works:

<Storyboard x:Key="StudyUIInTransition" x:Name="StudyUIInTransitionCompleted" Completed="StudyUIInTransitionCompleted_Completed"><DoubleAnimationUsingKeyFrames 
		BeginTime="00:00:00" 
		Storyboard.TargetName="ContentPresenterGrid" 
		Storyboard.TargetProperty="(UIElement.Opacity)"><SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/><SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/><SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="1"/></DoubleAnimationUsingKeyFrames></Storyboard>

and I want to reverse this for my "StudyUIOutTransition":

<Storyboard x:Key="StudyUIOutTransition" x:Name="StudyUIOutTransitionCompleted" ><DoubleAnimationUsingKeyFrames 
		BeginTime="00:00:00" 
		Storyboard.TargetName="ContentPresenterGrid" 
		Storyboard.TargetProperty="(UIElement.Opacity)"><SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/><SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/><SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="0"/></DoubleAnimationUsingKeyFrames></Storyboard>

but, I can't this to work.  This code works great I got from another site, but I would like to get the above to work to help me understand out these properties:

<Storyboard x:Key="FadeInMenu"><DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="{x:Null}"><EasingDoubleKeyFrame KeyTime="0" Value="0"/><EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="1"/></DoubleAnimationUsingKeyFrames><ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="{x:Null}"><DiscreteObjectKeyFrame KeyTime="0:0:0.0" Value="{x:Static Visibility.Visible}"/></ObjectAnimationUsingKeyFrames></Storyboard>

Thanks!...

Code is like a box of chocolates!...


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>