Exemple #1
0
 public void ReleaseResources()
 {
     if (AgVeil.IsWait)
     {
         AgVeil.EndWait();
     }
     CompositionTarget.Rendering -= OnRendering;
     SplashPopup.Child            = null;
     SplashPopup = null;
 }
Exemple #2
0
 public void HideSplashScreen()
 {
     if (AgVeil.IsWait)
     {
         AgVeil.EndWait();
     }
     SplashPopup.IsOpen = false;
     SplashPopup.Child  = null;
     if (PrevFocusedControl != null)
     {
         PrevFocusedControl.Focus();
         PrevFocusedControl = null;
     }
 }
Exemple #3
0
 public void ShowSplashScreen()
 {
     PrevFocusedControl = FocusManager.GetFocusedElement() as Control;
     SplashPopup.Child  = SplashScreen;
     OnLeftTopChanged();
     UpdateFlowDirection();
     lastRenderTime = DateTime.Now;
     CompositionTarget.Rendering += OnRendering;
     if (UseFadeEffect)
     {
         AgVeil.BeginWait(true);
     }
     SplashPopup.IsOpen = true;
     UpdatePopupPos();
 }