示例#1
0
 public void HideWindow()
 {
     if (!isClosing)
     {
         isClosing = true;
         double completedPanelHeight = CompletedStackPanel.ActualHeight;
         var    storyboard           = AnimationUtils.GetStoryboard();
         //AnimationUtils.SetTranslateAnimation(storyboard, _mainScrollViewer as FrameworkElement, -_height, 0, 0.6);
         AnimationUtils.SetTranslateAnimation(storyboard, CompletedStackPanel as FrameworkElement, -_height, 0, 0.3);
         AnimationUtils.SetOpacityAnimation(storyboard, BackgroundRect as FrameworkElement, 0, 0.3);
         storyboard.Completed += delegate(object sender1, EventArgs e1)
         {
             PopupWindow.HideWindow();
         };
         storyboard.Begin();
     }
 }
示例#2
0
 private void ContentTextBox_LostFocus(object sender, RoutedEventArgs e)
 {
     PopupWindow.HideWindow();
 }
示例#3
0
 public static void HideWindow()
 {
     PopupWindow.HideWindow(false);
 }