In my case:
bool confirmResult = false;
//--> dialog window opens
confirmResult = await DialogService.ConfirmAsync("Are you sure?", "Confirmation",
new DialogOptions()
{
PrimaryButtonOptions = new DialogButtonOptions { Content = "Yes" },
CancelButtonOptions = new DialogButtonOptions { Content = "Cancel" },
});
//--> "await" does not stop until the window is closed
//--> the window is visible, but the execution of the program does not wait,
//--> confirmResult is false, regardless of the dialog result
if (confirmResult)
{
...
}
In version 20.4..0.53 the DialogService is working correctly.