CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2013
    Posts
    2

    Move grid doesn't work

    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!

  2. #2
    Join Date
    May 2013
    Posts
    2

    Re: Move grid doesn't work


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured