496 lines
36 KiB
XML
496 lines
36 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:TheXamlGuy.UI.WPF.Controls">
|
|
<Style TargetType="controls:TransitioningContentControl">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="controls:TransitioningContentControl">
|
|
<Grid
|
|
x:Name="Container"
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalAlignment}">
|
|
<Image
|
|
x:Name="PreviousImageSite"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Source="{x:Null}">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<TransformGroup.Children>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup.Children>
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
<ContentPresenter
|
|
x:Name="CurrentContentPresentationSite"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{x:Null}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}">
|
|
<ContentPresenter.RenderTransform>
|
|
<TransformGroup>
|
|
<TransformGroup.Children>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup.Children>
|
|
</TransformGroup>
|
|
</ContentPresenter.RenderTransform>
|
|
</ContentPresenter>
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="PresentationStates">
|
|
<VisualState x:Name="Normal">
|
|
<Storyboard>
|
|
<ObjectAnimationUsingKeyFrames
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
<DiscreteObjectKeyFrame.Value>
|
|
<Visibility>Collapsed</Visibility>
|
|
</DiscreteObjectKeyFrame.Value>
|
|
</DiscreteObjectKeyFrame>
|
|
</ObjectAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="Fade">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
From="1"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
From="0"
|
|
To="1"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="SlideLeft">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="SlideRight">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="SlideDown">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="SlideUp">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="MoveLeft">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="0"
|
|
To="30"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="MoveRight">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="0"
|
|
To="30"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="MoveDown">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="0"
|
|
To="30"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="MoveUp">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="0"
|
|
To="30"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="DropDown">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="0"
|
|
To="30"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
From="0"
|
|
To="1"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
From="1"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="DropUp">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="0"
|
|
To="30"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
From="0"
|
|
To="1"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
From="1"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="DropRight">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="0"
|
|
To="30"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
From="0"
|
|
To="1"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
From="1"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="DropLeft">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="-30"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="0"
|
|
To="30"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="CurrentContentPresentationSite"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
From="0"
|
|
To="1"
|
|
Duration="00:00:00.3" />
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.Opacity)"
|
|
From="1"
|
|
To="0"
|
|
Duration="00:00:00.3" />
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="BounceLeftIn">
|
|
<Storyboard>
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)">
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="-90" />
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00.4" Value="-90" />
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00.7" Value="0">
|
|
<EasingDoubleKeyFrame.EasingFunction>
|
|
<CircleEase EasingMode="EaseOut" />
|
|
</EasingDoubleKeyFrame.EasingFunction>
|
|
</EasingDoubleKeyFrame>
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.Opacity)">
|
|
<DiscreteDoubleKeyFrame KeyTime="00:00:00" Value="0" />
|
|
<DiscreteDoubleKeyFrame KeyTime="00:00:00.4" Value="1" />
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PreviousImageSite" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
<DiscreteObjectKeyFrame.Value>
|
|
<Visibility>Collapsed</Visibility>
|
|
</DiscreteObjectKeyFrame.Value>
|
|
</DiscreteObjectKeyFrame>
|
|
</ObjectAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="BounceLeftOut">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="0"
|
|
To="-90"
|
|
Duration="00:00:00.2" />
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
<DiscreteObjectKeyFrame.Value>
|
|
<Visibility>Collapsed</Visibility>
|
|
</DiscreteObjectKeyFrame.Value>
|
|
</DiscreteObjectKeyFrame>
|
|
</ObjectAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="BounceRightIn">
|
|
<Storyboard>
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)">
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="-90" />
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00.4" Value="-90" />
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00.7" Value="0">
|
|
<EasingDoubleKeyFrame.EasingFunction>
|
|
<CircleEase EasingMode="EaseOut" />
|
|
</EasingDoubleKeyFrame.EasingFunction>
|
|
</EasingDoubleKeyFrame>
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.Opacity)">
|
|
<DiscreteDoubleKeyFrame KeyTime="00:00:00" Value="0" />
|
|
<DiscreteDoubleKeyFrame KeyTime="00:00:00.4" Value="1" />
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PreviousImageSite" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
<DiscreteObjectKeyFrame.Value>
|
|
<Visibility>Collapsed</Visibility>
|
|
</DiscreteObjectKeyFrame.Value>
|
|
</DiscreteObjectKeyFrame>
|
|
</ObjectAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="BounceRightOut">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.X)"
|
|
From="0"
|
|
To="-90"
|
|
Duration="00:00:00.2" />
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
<DiscreteObjectKeyFrame.Value>
|
|
<Visibility>Collapsed</Visibility>
|
|
</DiscreteObjectKeyFrame.Value>
|
|
</DiscreteObjectKeyFrame>
|
|
</ObjectAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="BounceUpIn">
|
|
<Storyboard>
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)">
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="-90" />
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00.4" Value="-90" />
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00.7" Value="0">
|
|
<EasingDoubleKeyFrame.EasingFunction>
|
|
<CircleEase EasingMode="EaseOut" />
|
|
</EasingDoubleKeyFrame.EasingFunction>
|
|
</EasingDoubleKeyFrame>
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.Opacity)">
|
|
<DiscreteDoubleKeyFrame KeyTime="00:00:00" Value="0" />
|
|
<DiscreteDoubleKeyFrame KeyTime="00:00:00.4" Value="1" />
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PreviousImageSite" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
<DiscreteObjectKeyFrame.Value>
|
|
<Visibility>Collapsed</Visibility>
|
|
</DiscreteObjectKeyFrame.Value>
|
|
</DiscreteObjectKeyFrame>
|
|
</ObjectAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="BounceUpOut">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="0"
|
|
To="-90"
|
|
Duration="00:00:00.2" />
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
<DiscreteObjectKeyFrame.Value>
|
|
<Visibility>Collapsed</Visibility>
|
|
</DiscreteObjectKeyFrame.Value>
|
|
</DiscreteObjectKeyFrame>
|
|
</ObjectAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="BounceDownIn">
|
|
<Storyboard>
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)">
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="-90" />
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00.4" Value="-90" />
|
|
<EasingDoubleKeyFrame KeyTime="00:00:00.7" Value="0">
|
|
<EasingDoubleKeyFrame.EasingFunction>
|
|
<CircleEase EasingMode="EaseOut" />
|
|
</EasingDoubleKeyFrame.EasingFunction>
|
|
</EasingDoubleKeyFrame>
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.Opacity)">
|
|
<DiscreteDoubleKeyFrame KeyTime="00:00:00" Value="0" />
|
|
<DiscreteDoubleKeyFrame KeyTime="00:00:00.4" Value="1" />
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PreviousImageSite" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
<DiscreteObjectKeyFrame.Value>
|
|
<Visibility>Collapsed</Visibility>
|
|
</DiscreteObjectKeyFrame.Value>
|
|
</DiscreteObjectKeyFrame>
|
|
</ObjectAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="BounceDownOut">
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="PreviousImageSite"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(TranslateTransform.Y)"
|
|
From="0"
|
|
To="-90"
|
|
Duration="00:00:00.2" />
|
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CurrentContentPresentationSite" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
<DiscreteObjectKeyFrame.Value>
|
|
<Visibility>Collapsed</Visibility>
|
|
</DiscreteObjectKeyFrame.Value>
|
|
</DiscreteObjectKeyFrame>
|
|
</ObjectAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |