Skip to content

DisplayPrompt not working and not even showing... #32418

@loleczekqdev

Description

@loleczekqdev

Description

Tried to test out the display alert for my app and it's not even showing.
Am I doing something wrong?

Steps to Reproduce

  1. Create .NET Maui App
  2. In code behind make a label and use this function on it
    void AddEditableGesture(Label label) { var tapGesture = new TapGestureRecognizer(); tapGesture.Tapped += async (s, e) => { await MainThread.InvokeOnMainThreadAsync(async () => { string result = await DisplayPromptAsync("Question 1", "What's your name?"); }); }; }
  3. Observe nothing showing when clicked

Link to public reproduction project repository

No response

Version with bug

10.0.0-rc.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

All

Did you find any workaround?

No

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    s/needs-reproAttach a solution or code which reproduces the issues/no-recent-activityIssue has had no recent activityt/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions