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