Hey guys in this tutorial we are going to add Alert Dialog in xamarin forms project.
So in order to add an alert dialog to the page make your mainpage to start up page in xaml.
It is used for single-line text input. It supports multiple keyboard types and can be used as a password field.
It organizes our views in a one-dimensional line either horizontally or vertically.
Step1: Make Your MainPage as a start up page.
In this project we will be adding a button. Which will fire an alert dialog when it is clicked. So in Xaml page we will be adding a button and give button an clickevent.
Step3: Now our main objective is to handle that clicked event with the dialog alert.So in our MainPage.Cs Code Behiind we are going to implement this code.