Skip to content
Discussion options

You must be logged in to vote

The code below is what I wrote to solve this problem.

private PopupIndicator pIndicator = null;

protected async Task ShowIndicator()
{
    if (pIndicator == null)
    {
        try
        {
            pIndicator = new PopupIndicator();
            var tcs = new TaskCompletionSource();
            EventHandler handler = (s, e) =>
            {
                tcs.TrySetResult();
            };
            pIndicator.Opened += handler;

            await Dispatcher.DispatchAsync(() =>
            {
                this.ShowPopup(pIndicator, new PopupOptions()
                {
                    CanBeDismissedByTappingOutsideOfPopup = false,
                    Shape = null
            …

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cat0363
Comment options

Answer selected by cat0363
Comment options

You must be logged in to vote
5 replies
@cat0363
Comment options

@pictos
Comment options

pictos Sep 18, 2025
Collaborator

@cat0363
Comment options

@cat0363
Comment options

@pictos
Comment options

pictos Sep 18, 2025
Collaborator

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