Esempio n. 1
0
 private void butonHideUnhide_Click(object sender, RoutedEventArgs e)
 {
     if (isHide)
     {
         butonHideUnhide.Content = "Hide";
         isHide = !isHide;
         StoryboardLibrary.MenuAnim(gridMenu, StoryboardLibrary.MenuAnimOption.Show, gridMenu.RenderSize.Height - 28, StoryboardLibrary.MoveDirection.UpDown).Begin();
     }
     else
     {
         butonHideUnhide.Content = "UnHide";
         isHide = !isHide;
         StoryboardLibrary.MenuAnim(gridMenu, StoryboardLibrary.MenuAnimOption.Hide, gridMenu.RenderSize.Height - 28, StoryboardLibrary.MoveDirection.UpDown).Begin();
     }
 }
Esempio n. 2
0
 private void butonMenu_Click(object sender, RoutedEventArgs e)
 {
     if (isHide)
     {
         butonMenu.Content = ">";
         isHide            = !isHide;
         StoryboardLibrary.MenuAnim(gridMenu, StoryboardLibrary.MenuAnimOption.Show, gridMenu.RenderSize.Width - 40, StoryboardLibrary.MoveDirection.RightLeft).Begin();
     }
     else
     {
         butonMenu.Content = "<";
         isHide            = !isHide;
         StoryboardLibrary.MenuAnim(gridMenu, StoryboardLibrary.MenuAnimOption.Hide, gridMenu.RenderSize.Width - 40, StoryboardLibrary.MoveDirection.RightLeft).Begin();
     }
 }