public ProgressDialog()
 {
     this.CancelVisibility = Visibility.Collapsed;
     this.IsIndeterministic = true;
     this.dialog = new ProgressContentDialog { DataContext = this };
     this.Cancel = new Command(() => this.cancelAction?.Invoke());
 }
Beispiel #2
0
 public ProgressDialog(ProgressDialogConfig config)
 {
     this.config = config;
     this.dialog = new ProgressContentDialog {
         DataContext = this
     };
     this.Cancel = new Command(() => config.OnCancel?.Invoke());
 }
Beispiel #3
0
 public ProgressDialog()
 {
     this.CancelVisibility  = Visibility.Collapsed;
     this.IsIndeterministic = true;
     this.dialog            = new ProgressContentDialog {
         DataContext = this
     };
     this.Cancel = new Command(() => this.cancelAction?.Invoke());
 }
        public void Show()
        {
            if (this.IsShowing)
            {
                return;
            }

            this.IsShowing = true;
            this.Dispatch(() =>
            {
                if (this.dialog == null)
                {
                    this.dialog = new ProgressContentDialog {
                        DataContext = this
                    }
                }
                ;

                this.dialog.ShowAsync();
            });
        }
Beispiel #5
0
 public ProgressDialog(ProgressDialogConfig config)
 {
     this.config = config;
     this.dialog = new ProgressContentDialog { DataContext = this };
     this.Cancel = new Command(() => config.OnCancel?.Invoke());
 }