예제 #1
0
 private void TapTranBorder(object sender, RoutedEventArgs e)
 {
     if (_isInSide)
     {
         SideOutStory.Begin();
         HamOutStory.Begin();
         _isInSide = false;
         return;
     }
 }
예제 #2
0
 private void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e)
 {
     if (_isInSide)
     {
         e.Handled = true;
         SideOutStory.Begin();
         HamOutStory.Begin();
         _isInSide = false;
         return;
     }
 }
예제 #3
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     HardwareButtons.BackPressed -= HardwareButtons_BackPressed;
     if (_isInSide)
     {
         SideOutStory.Begin();
         HamOutStory.Begin();
         _isInSide = false;
         return;
     }
 }
예제 #4
0
 private void HamburgerClick(object sender, RoutedEventArgs e)
 {
     if (_isInSide)
     {
         SideOutStory.Begin();
         HamOutStory.Begin();
         _isInSide = false;
     }
     else
     {
         SideInStory.Begin();
         HamInStory.Begin();
         _isInSide = true;
     }
 }
예제 #5
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;
         }
     }
 }
예제 #6
0
 public void PlayHamOutStory()
 {
     HamOutStory.Begin();
 }