Skip to content

Commit

Permalink
Changed Titanium slide menu to use margins first and later animation …
Browse files Browse the repository at this point in the history
…of translation
  • Loading branch information
morpheusxx committed Jan 17, 2013
1 parent 04779bd commit ba365a2
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -71,14 +71,14 @@ Parameters which have to be accessible by a DynamicResource lookup:
</Border.Margin>
</Border>

<Grid x:Name="LeftPanel" Margin="0,-50,10,-75" VerticalAlignment="Stretch"
<Grid x:Name="LeftPanel" Margin="-550,-50,10,-75" VerticalAlignment="Stretch"
Width="550" HorizontalAlignment="Left">

<Grid.Resources>
<Storyboard x:Key="SlideInStoryboard" FillBehavior="HoldEnd">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" FillBehavior="HoldEnd" Storyboard.TargetName="LeftPanel" Storyboard.TargetProperty="RenderTransform.X">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-550"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.20" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.20" Value="550"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</Grid.Resources>
Expand All @@ -91,7 +91,7 @@ Parameters which have to be accessible by a DynamicResource lookup:
</Grid.RowDefinitions>

<Grid.RenderTransform>
<TranslateTransform X="-550"/>
<TranslateTransform X="0"/>
</Grid.RenderTransform>

<Grid.Triggers>
Expand Down

0 comments on commit ba365a2

Please sign in to comment.