source: trunk/CrypPlugins/WorkspaceManager/View/Resource/Animations.xaml @ 1892

Last change on this file since 1892 was 1728, checked in by matkovic, 12 years ago

-added Animations
-added loupe image

File size: 4.2 KB
Line 
1<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3   
4    <Storyboard x:Key="IncrementHeigth">
5        <DoubleAnimation To="28" Duration="00:00:00.15" Storyboard.TargetProperty="Height" />
6    </Storyboard>
7
8    <Storyboard x:Key="DecrementHeigth">
9        <DoubleAnimation To="10" Duration="00:00:00.15" Storyboard.TargetProperty="Height" />
10    </Storyboard>
11
12    <Storyboard x:Key="Up" AutoReverse="True" RepeatBehavior="Forever" DecelerationRatio="0.5">
13        <DoubleAnimation From="0" To="8" Duration="00:00:00.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"/>
14    </Storyboard>
15
16    <Storyboard x:Key="MaxMinColorAnimEnter" DecelerationRatio="0.5">
17        <ColorAnimation To="#FFFFFF" Duration="00:00:00.5" Storyboard.TargetProperty="BorderBrush.Color"></ColorAnimation>
18    </Storyboard>
19
20    <Storyboard x:Key="MaxMinColorAnimLeave" DecelerationRatio="0.5">
21        <ColorAnimation To="#88FFFFFF" Duration="00:00:00.5" Storyboard.TargetProperty="BorderBrush.Color"></ColorAnimation>
22    </Storyboard>
23
24    <Storyboard x:Key="FadeIn">
25        <DoubleAnimation To="1" Duration="00:00:00.5" Storyboard.TargetProperty="Opacity"/>
26    </Storyboard>
27
28    <Storyboard x:Key="FadeOut">
29        <DoubleAnimation To="0" Duration="00:00:00.5" Storyboard.TargetProperty="Opacity"/>
30    </Storyboard>
31
32    <Storyboard x:Key="VisiblityCollapsed" BeginTime="00:00:00">
33        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
34            <DiscreteObjectKeyFrame Value="{x:Static Visibility.Collapsed}" />
35        </ObjectAnimationUsingKeyFrames>
36    </Storyboard>
37
38    <Storyboard x:Key="VisiblityVisible" BeginTime="00:00:00.2">
39        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility">
40            <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" />
41        </ObjectAnimationUsingKeyFrames>
42    </Storyboard>
43
44    <Storyboard x:Key="RollOut" AccelerationRatio="0.2" DecelerationRatio="0.2">
45        <ThicknessAnimation
46                Storyboard.TargetProperty="Margin"
47                Duration="00:00:00.2" FillBehavior="HoldEnd" To="0,30,0,0" />
48       
49        <!--<ObjectAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetProperty="Visibility">
50            <DiscreteObjectKeyFrame Value="{x:Static Visibility.Visible}" />
51        </ObjectAnimationUsingKeyFrames>-->
52
53    </Storyboard>
54   
55    <Storyboard x:Key="RollBack">
56        <ThicknessAnimation
57                Storyboard.TargetProperty="Margin"
58                Duration="00:00:00.2" FillBehavior="HoldEnd" To="-80,30,0,0" />
59       
60        <!--<ObjectAnimationUsingKeyFrames BeginTime="00:00:01" Storyboard.TargetProperty="Visibility">
61            <DiscreteObjectKeyFrame Value="{x:Static Visibility.Collapsed}" />
62        </ObjectAnimationUsingKeyFrames>-->
63
64    </Storyboard>
65
66    <Storyboard x:Key="Disappear" AccelerationRatio="0.3" DecelerationRatio="0.3">
67        <DoubleAnimation To="0" Duration="00:00:00.5" Storyboard.TargetProperty="Opacity"/>
68        <DoubleAnimation To="0" Duration="00:00:00.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"/>
69        <DoubleAnimation To="0" Duration="00:00:00.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"/>
70        <ThicknessAnimation
71                Storyboard.TargetProperty="Margin"
72                Duration="00:00:00.5" FillBehavior="HoldEnd" To="-80,30,0,0" />
73    </Storyboard>
74
75    <Storyboard x:Key="Appear" AccelerationRatio="0.3" DecelerationRatio="0.3">
76        <DoubleAnimation To="1" Duration="00:00:00.5" Storyboard.TargetProperty="Opacity"/>
77        <DoubleAnimation To="1" Duration="00:00:00.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"/>
78        <DoubleAnimation To="1" Duration="00:00:00.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"/>
79        <ThicknessAnimation
80                Storyboard.TargetProperty="Margin"
81                Duration="00:00:00.5" FillBehavior="HoldEnd" To="0,30,0,0" />
82    </Storyboard>
83   
84   
85
86</ResourceDictionary>
Note: See TracBrowser for help on using the repository browser.