Select to view content in your preferred language

Slide out window with tools

522
0
10-22-2010 12:39 PM
JayKappy
Frequent Contributor
I am looking to create a slide out window that will house tools, layer turn on turn off etc.
Where I click a small image on the left and it slides open to reviel the tools....

I was able to create a window that slides open but cant figure out how to embed the tools...
Any thoughts or examples?

Any thoughts?

xaml
    <Canvas>
         <StackPanel>
             <StackPanel.Resources>
             <!-- Animates the rectangle's opacity. -->
             <Storyboard x:Name="myStoryboard3">
             <DoubleAnimation  Storyboard.TargetName="MyAnimatedRectangle3"
                                                  Storyboard.TargetProperty="Opacity"
                                                  From="1.0" To="0.0" Duration="0:0:1" 
                                                  AutoReverse="True" 
                                                  RepeatBehavior="1x" />
            <DoubleAnimation  Storyboard.TargetName="MyAnimatedRectangle3"
                                                  Storyboard.TargetProperty="Width"
                                                  From="100.0" To="500.0" Duration="0:0:1" 
                                                  AutoReverse="True" 
                                                  RepeatBehavior="1x" />
           </Storyboard>

         </StackPanel.Resources>
         <Rectangle MouseLeftButtonDown="Animate3_Mouse_Clicked" x:Name="MyAnimatedRectangle3" Width="100" Height="100" Fill="Green" HorizontalAlignment="Left" />
          
         </StackPanel>
</Canvas>



VB
Private Sub Animate3_Mouse_Clicked(ByVal sender As Object, ByVal e As MouseEventArgs)
        myStoryboard3.Begin()
    End Sub
0 Kudos
0 Replies