question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DisplayActionSheet not opening the action dialog on Windows

See original GitHub issue

Description

Just attempting to use the Page.DisplayActionSheet API on a MAUI content page and it isn’t displaying the action sheet dialog at all. The returned task never finishes, so it seems like it thinks it is rendered. I can continue using the application as well, so navigation still seems fine too.

Steps to Reproduce

  1. Create a .NET MAUI App
  2. Add a call to Page.DisplayActionSheet, for instance: await this.DisplayActionSheet("What type of condition?", "Cancel", null, "Source Condition", "Position Condition", "Attribute Condition", "Affected By Condition" );
  3. Observe the call never returns and the dialog is never displayed

Version with bug

Preview 10 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

net6.0-windows10.0.19041

Did you find any workaround?

No known workaround at this time.

Relevant log output

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shimingsgcommented, Feb 24, 2022

Verified Repro with windows, Repro project 3726.zip

0reactions
plettbcommented, Apr 28, 2022

I’m running VS 17.2.0 Preview 5 and I’m still experiencing this problem. Android does it correctly, but Windows still runs through the statement without waiting. Is it something I’m doing wrong?

Read more comments on GitHub >

github_iconTop Results From Across the Web

DisplayActionSheet in .Net MAUI only working ...
Searching for a solution I only found this on a bug report (DisplayActionSheet not opening the action dialog on Windows #3726) that was ......
Read more >
Display pop-ups - .NET MAUI
To display an action sheet, use the DisplayActionSheet method on any Page, passing the message and button labels as strings:.
Read more >
Using the Page Dialog Service - PrismNew
Forms has two methods on the Page class for interacting with the user via a pop-up: DisplayAlert and DisplayActionSheet. Prism provides a single ......
Read more >
Displaying Pop-Up in .NET MAUI
Let's start! Displaying alert message ... Message: It's the Body text of the alert dialog. ... string action = await DisplayActionSheet("Share message by....
Read more >
Creating a Xamarin Forms App Part 9 : Working with Alerts ...
Xamarin Forms provides the DisplayAlert and DisplayActionSheet methods on the Page class to show dialog messages to the user.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found