コード例 #1
0
 public ProgressDialog()
 {
     this.CancelVisibility = Visibility.Collapsed;
     this.IsIndeterministic = true;
     this.dialog = new ProgressContentDialog { DataContext = this };
     this.Cancel = new Command(() => this.cancelAction?.Invoke());
 }
コード例 #2
0
 public ProgressDialog(ProgressDialogConfig config)
 {
     this.config = config;
     this.dialog = new ProgressContentDialog {
         DataContext = this
     };
     this.Cancel = new Command(() => config.OnCancel?.Invoke());
 }
コード例 #3
0
 public ProgressDialog()
 {
     this.CancelVisibility  = Visibility.Collapsed;
     this.IsIndeterministic = true;
     this.dialog            = new ProgressContentDialog {
         DataContext = this
     };
     this.Cancel = new Command(() => this.cancelAction?.Invoke());
 }
コード例 #4
0
        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();
            });
        }
コード例 #5
0
 public ProgressDialog(ProgressDialogConfig config)
 {
     this.config = config;
     this.dialog = new ProgressContentDialog { DataContext = this };
     this.Cancel = new Command(() => config.OnCancel?.Invoke());
 }