// hide and show busy dialog public static void SetBusy(bool busy, string text = null) { WindowWrapper.Current().Dispatcher.Dispatch(() => { var modal = Window.Current.Content as ModalDialog; var view = modal.ModalContent as Busy; if (view == null) modal.ModalContent = view = new Busy(); modal.IsModal = view.IsBusy = busy; view.BusyText = text; }); }
public override UIElement CreateRootElement(IActivatedEventArgs e) { var service = NavigationServiceFactory(BackButton.Attach, ExistingContent.Exclude); return(new ModalDialog(new Views.Shell(service), ModalContent = new Views.Busy())); }