-
Is there a way to close a currently opend dialog from a other location without having direct access to the instance of the dialog? |
Beta Was this translation helpful? Give feedback.
Answered by
canton7
Apr 12, 2022
Replies: 1 comment
-
You need some way of telling the dialog you want it to close. You could keep a reference to it, or send it a message through the Event Aggregator, or store the instance somewhere (e.g. make a service which manages that dialog, and register it as a singleton with the ioc container). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
derech1e
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need some way of telling the dialog you want it to close. You could keep a reference to it, or send it a message through the Event Aggregator, or store the instance somewhere (e.g. make a service which manages that dialog, and register it as a singleton with the ioc container).