Skip to content

showing popup from viewmodel #17522

Answered by morning4coffe-dev
ashah7 asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, I see! Thank you for specifying the details in your scenario. For this, I think you will need to enqueue the request with a dispatcher, as this might be running on a different thread. As an example, you can do something like this:

var dispatcher = Window.Current.DispatcherQueue;
dispatcher .TryEnqueue(() =>
{
      Openpopupformessages = !Openpopupformessages;
});

Please let me know if this helps for your scenario as I didn't test it on my side. We can investigate further if not.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ashah7
Comment options

@morning4coffe-dev
Comment options

Answer selected by morning4coffe-dev
@ashah7
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants