public void ReleaseResources() { if (AgVeil.IsWait) { AgVeil.EndWait(); } CompositionTarget.Rendering -= OnRendering; SplashPopup.Child = null; SplashPopup = null; }
public void HideSplashScreen() { if (AgVeil.IsWait) { AgVeil.EndWait(); } SplashPopup.IsOpen = false; SplashPopup.Child = null; if (PrevFocusedControl != null) { PrevFocusedControl.Focus(); PrevFocusedControl = null; } }
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(); }