Created
April 27, 2020 20:34
-
-
Save punker76/d51e6194d24af8a4b3d7eb70e6ee02de to your computer and use it in GitHub Desktop.
OwnerCanCloseWithDialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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