简体   繁体   中英

How to display an entry alert in xamarin forms

I'm trying to show an alert with an entry inside it, as I can see it in a lot of apps, but I could'n t find a solution for now (neither custom renders)

Any suggestions?

You can use UserDialogs libary

After initialization simply use:

UserDialogs.Instance.Alert("message")

You can do that in multiple ways. Lets say if you have your own UI and the Entry field. Then you can create the Popup Page and Display that Popup Page whenever necessary for the User Input. If you want to use Popup Page (best - only if you have requirements to have your own style of prompt):

https://github.com/rotorgames/Rg.Plugins.Popup

If you have very simple requirement of only Showing the Entry Field the use :

https://github.com/aritchie/userdialogs

Since this is very common question and have all the resources online. Please go through the websites above have all the examples you can look into. Please let me know if you still need any more help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM