So, I'm kind of new to Xamarin, and I'm trying to figure out how to display a pop-up that has a user-text-input field in it. DisplayAlert doesn't do it because it doesn't have a text-input field. What should I use?
Right-click on the project, then click on NuGet Package. Click Browse and search for Rg. Plugins. Popup, select Plugins and then check the projects in which we want to add this plugin.
Displaying an alert, asking a user to make a choice, or displaying a prompt is a common UI task. Xamarin. Forms has three methods on the Page class for interacting with the user via a pop-up: DisplayAlert , DisplayActionSheet , and DisplayPromptAsync .
Open Solution Explorer >> ToastMessage(PCL) >>right click and select New Item. In the popup window, select Cross Platform >>Class. This way, you can add a new class. In this step, create a new class named Toast_Android and add the following code.
You can using DisplayPromptAsync. It is from Xamarin Forms, without other plugins.
string result = await DisplayPromptAsync("Question 1", "What's your name?");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With