Skip to content

Instantly share code, notes, and snippets.

@punker76
Created April 27, 2020 20:34
Show Gist options
  • Save punker76/d51e6194d24af8a4b3d7eb70e6ee02de to your computer and use it in GitHub Desktop.
Save punker76/d51e6194d24af8a4b3d7eb70e6ee02de to your computer and use it in GitHub Desktop.
OwnerCanCloseWithDialog
...
var settings = new MetroDialogSettings { OwnerCanCloseWithDialog = true };
var dataContext = new AdvancedInstallViewModel(_chocolateyService.GetAvailableVersionsForPackageIdAsync(Id), Version);
customDialog.Content = new AdvancedChocolateyDialog { DataContext = dataContext };
await _dialogCoordinator.ShowMetroDialogAsync(this, customDialog, settings);
var result = await dataContext.WaitForClosingAsync();
await _dialogCoordinator.HideMetroDialogAsync(this, customDialog, settings);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment