예제 #1
0
 /// <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;
 }
예제 #2
0
 private void slideOn()
 {
     StoryboardLeft.Begin();
     _isSlided = true;
 }