Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added animations

-Added bag-o-tricks
-Added animations to shell content control
  • Loading branch information...
commit 13aba02766643ca5b9cdc697294c6a981ab2d274 1 parent c645fd0
@HEskandari HEskandari authored
View
1  Rhino.Licensing.AdminTool/App.xaml
@@ -7,6 +7,7 @@
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Theme/ExpressionDark.xaml" />
<ResourceDictionary Source="/Theme/AppStyles.xaml" />
+ <ResourceDictionary Source="/Theme/Animations.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
View
10 Rhino.Licensing.AdminTool/Rhino.Licensing.AdminTool.csproj
@@ -79,6 +79,12 @@
<Reference Include="Castle.Windsor">
<HintPath>..\SharedLibs\Castle.Windsor.dll</HintPath>
</Reference>
+ <Reference Include="J832.Common">
+ <HintPath>..\SharedLibs\J832.Common.dll</HintPath>
+ </Reference>
+ <Reference Include="J832.Wpf.BagOTricksLib">
+ <HintPath>..\SharedLibs\J832.Wpf.BagOTricksLib.dll</HintPath>
+ </Reference>
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedLibs\log4net.dll</HintPath>
@@ -150,6 +156,10 @@
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
+ <Page Include="Theme\Animations.xaml">
+ <SubType>Designer</SubType>
+ <Generator>MSBuild:Compile</Generator>
+ </Page>
<Page Include="Theme\AppStyles.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
View
43 Rhino.Licensing.AdminTool/Theme/Animations.xaml
@@ -0,0 +1,43 @@
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:lib="clr-namespace:Microsoft.Samples.KMoore.WPFSamples.Transition;assembly=J832.Wpf.BagOTricksLib">
+
+ <lib:StoryboardTransition x:Key="ContentSwitchAnimation" IsNewContentTopmost="False">
+ <lib:StoryboardTransition.OldContentStyle>
+ <Style TargetType="ContentPresenter">
+ <Setter Property="RenderTransformOrigin" Value="0.5, 0.5"/>
+ <Setter Property="RenderTransform">
+ <Setter.Value>
+ <ScaleTransform ScaleX="1" ScaleY="1"/>
+ </Setter.Value>
+ </Setter>
+ </Style>
+ </lib:StoryboardTransition.OldContentStyle>
+ <lib:StoryboardTransition.OldContentStoryboard>
+ <Storyboard>
+ <DoubleAnimation Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.25"/>
+ <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleX" From="1" To="1.2" Duration="0:0:0.25"/>
+ <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleY" From="1" To="1.2" Duration="0:0:0.25"/>
+ </Storyboard>
+ </lib:StoryboardTransition.OldContentStoryboard>
+
+ <lib:StoryboardTransition.NewContentStyle>
+ <Style TargetType="ContentPresenter">
+ <Setter Property="RenderTransformOrigin" Value="0.5, 0.5"/>
+ <Setter Property="RenderTransform">
+ <Setter.Value>
+ <ScaleTransform ScaleX="1" ScaleY="1"/>
+ </Setter.Value>
+ </Setter>
+ </Style>
+ </lib:StoryboardTransition.NewContentStyle>
+ <lib:StoryboardTransition.NewContentStoryboard>
+ <Storyboard>
+ <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.25"/>
+ <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleX" From="0.8" To="1" Duration="0:0:0.25"/>
+ <DoubleAnimation Storyboard.TargetProperty="RenderTransform.ScaleY" From="0.8" To="1" Duration="0:0:0.25"/>
+ </Storyboard>
+ </lib:StoryboardTransition.NewContentStoryboard>
+ </lib:StoryboardTransition>
+
+</ResourceDictionary>
View
6 Rhino.Licensing.AdminTool/Views/ShellView.xaml
@@ -4,6 +4,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:cal="http://www.caliburnproject.org"
+ xmlns:lib="clr-namespace:Microsoft.Samples.KMoore.WPFSamples.Transition;assembly=J832.Wpf.BagOTricksLib"
mc:Ignorable="d"
Title="{Binding DisplayName}"
d:DesignHeight="300" d:DesignWidth="300"
@@ -24,8 +25,9 @@
</MenuItem>
</Menu.Items>
</Menu>
-
- <ContentControl cal:View.Model="{Binding ActiveItem}" />
+
+ <lib:TransitionPresenter Transition="{StaticResource ContentSwitchAnimation}"
+ cal:View.Model="{Binding ActiveItem}" />
</DockPanel>
View
BIN  SharedLibs/J832.Common.dll
Binary file not shown
View
BIN  SharedLibs/J832.Wpf.BagOTricksLib.dll
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.