/// <summary> /// 控制侧边菜单展开或隐藏 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SlideAppBarButton_OnTapped(object sender, TappedRoutedEventArgs e) { if (!_isSlided) { StoryboardLeft.Begin(); } else { StoryboardRight.Begin(); } _isSlided = !_isSlided; }
private void slideOn() { StoryboardLeft.Begin(); _isSlided = true; }