Skip to content

find out if any dialog is open to close it ? #4491

Closed Answered by TheCamel
TheCamel asked this question in Q&A
Discussion options

You must be logged in to vote

VisualHelper.InvokeIfNecessary( async () =>
{
if (IsAnyDialogOpen)
{
BaseMetroDialog? dlg = await this.GetCurrentDialogAsync();
await this.HideMetroDialogAsync(dlg!);
}
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheCamel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant