Hi guys!

This is my first post and I am new to xaml.

Code:
<Grid.Resources>
            <Storyboard x:Key="MouseLeaveDeck">
                <ThicknessAnimation
        Storyboard.TargetName="Deck" 
        Storyboard.TargetProperty="Grid.Thickness"
         To="0,0,0,0" Duration="0:0:0.1"/>
            </Storyboard>
        </Grid.Resources>
        <Grid.Triggers>
            <EventTrigger RoutedEvent="Grid.MouseLeave" SourceName="Deck">
                <BeginStoryboard Storyboard="{StaticResource MouseLeaveDeck}"/>
            </EventTrigger>
        </Grid.Triggers>
I control movement of a grid called "Deck" by System.Windows.Thickness in vb. I want the grid return to its original place on mouseleave. BTW, It is in another grid.

The code above doesn't work. What is the glitch?

Thanks a lot!