Popup Dialog with Text Input in Xamarin Forms

You can using DisplayPromptAsync. It is from Xamarin Forms, without other plugins.

string result = await DisplayPromptAsync("Question 1", "What's your name?");

You should try Acr.UserDialogs

NuGet: https://www.nuget.org/packages/Acr.UserDialogs/

GitHub Repo: https://github.com/aritchie/userdialogs


I personally love this nuget (source on github) which allows you to use PopupPage xaml view inside a popup and elegantly as it adds the following methods that look very familiar with what we're all used to:

Navigation.PushPopupAsync()
Navigation.PopPopupAsync()
Navigation.PopAllPopupAsync()
Navigation.RemovePopupPageAsync()

enter image description here

Tags:

Popup

Xamarin