Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Popup Dialog with Text Input in Xamarin Forms

Tags:

xamarin

popup

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?

like image 857
prinsJoe Avatar asked Jun 23 '15 05:06

prinsJoe


People also ask

How do I add a pop up form in xamarin?

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.

How to Display alert in Xamarin Forms?

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 .

How do I show toast message in xamarin?

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.


1 Answers

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

string result = await DisplayPromptAsync("Question 1", "What's your name?");
like image 67
FetFrumos Avatar answered Sep 20 '22 11:09

FetFrumos