/// <summary> /// 显示等待信息(全局,影响整个窗体) /// </summary> /// <param name="pWaitMessage"></param> public static void WaitMessage(string pWaitMessage) { if (_topPopup == null) { _topPopup = new Popup(); _topBackgound = new BackgroundPanelEx(); } if (string.IsNullOrWhiteSpace(pWaitMessage)) { _topPopup.Child = null; _topPopup.IsOpen = false; } else { _topBackgound.WaitMessage = pWaitMessage; _topPopup.Child = _topBackgound; _topPopup.Placement = PlacementMode.Center; _topPopup.PlacementTarget = Application.Current.MainWindow; _topPopup.IsOpen = true; } }
public CancelWaitMessageCommand(BackgroundPanelEx pBackgroundPanelEx) { _backgroundPanelEx = pBackgroundPanelEx; }