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