コード例 #1
0
ファイル: Busy.xaml.cs プロジェクト: GFlisch/Template10
 // 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;
     });
 }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: angrah/ForkTemplate10
        public override UIElement CreateRootElement(IActivatedEventArgs e)
        {
            var service = NavigationServiceFactory(BackButton.Attach, ExistingContent.Exclude);

            return(new ModalDialog(new Views.Shell(service), ModalContent = new Views.Busy()));
        }