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 PlayHamInStory() { HamInStory.Begin(); }