You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing an application with multiple DialogHosts.
When I close a new view (which has a DialogHost) it takes some time to call the unload event from the DialogHost class and remove that view from de LoadedInstances.
And if I try to open that view imediatelly, it shows me this message:
Multiple viable DialogHosts. Specify a unique Identifier on each DialogHost, especially where multiple Windows are a concern.
If I remove the "if (targets.Count > 1)", my application seems to work normally.
Multiple viable DialogHosts. Specify a unique Identifier on each DialogHost, especially where multiple Windows are a concern.
When you first open the dialog it works, because the second dialoghost hasnt loaded yet. Then, when you reopen there are two loaded dialoghosts, hence Multiple viable Dialoghosts.
Hi!
I'm developing an application with multiple DialogHosts.
When I close a new view (which has a DialogHost) it takes some time to call the unload event from the DialogHost class and remove that view from de LoadedInstances.
And if I try to open that view imediatelly, it shows me this message:
Multiple viable DialogHosts. Specify a unique Identifier on each DialogHost, especially where multiple Windows are a concern.
If I remove the "if (targets.Count > 1)", my application seems to work normally.
Could you take a look?
Here is a repository with a simple example (and how to reproduce the error):
https://github.com/stealthcold/dialoghostexample.git
thanks
The text was updated successfully, but these errors were encountered: