MahApps.Metro.Controls.Dialogs.ProgressDialogController.SetCancelable C# (CSharp) Method

SetCancelable() public method

Sets if the Cancel button is visible.
public SetCancelable ( bool value ) : void
value bool
return void
        public void SetCancelable(bool value)
        {
            this.WrappedDialog.Invoke(() => this.WrappedDialog.IsCancelable = value);
        }

Usage Example

 public async void ShowProgress(string location, bool isSvn, string autoInstallName = null)
 {
     controller =
         await
             this.ShowProgressAsync(
                 Utility.GetMultiLanguageText("Updating"), Utility.GetMultiLanguageText("DownloadingData"));
     controller.SetIndeterminate();
     controller.SetCancelable(true);
     ListAssemblies(location, isSvn, autoInstallName);
 }
All Usage Examples Of MahApps.Metro.Controls.Dialogs.ProgressDialogController::SetCancelable