Esempio n. 1
0
 private void HamburgerClick(object sender, RoutedEventArgs e)
 {
     if (_isInSide)
     {
         SideOutStory.Begin();
         HamOutStory.Begin();
         _isInSide = false;
     }
     else
     {
         SideInStory.Begin();
         HamInStory.Begin();
         _isInSide = true;
     }
 }
Esempio n. 2
0
 private void ContentGrid_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e)
 {
     if (e.Delta.Translation.X > 10 && _oriXPosition <= 10)
     {
         if (!_isInSide)
         {
             SideInStory.Begin();
             HamInStory.Begin();
             _isInSide = true;
         }
     }
     else if (e.Delta.Translation.X < -10)
     {
         if (_isInSide)
         {
             SideOutStory.Begin();
             HamOutStory.Begin();
             _isInSide = false;
         }
     }
 }
Esempio n. 3
0
 public void PlayHamInStory()
 {
     HamInStory.Begin();
 }