Welcome to Xamarin Guy Show Blog

Keep updated for latest and Greatest Posts from Xamarin guy

Xamarin Forms Alert Dialog [Tutorial 23]

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.

Basics:
Entry:
It is used for single-line text input. It supports multiple keyboard types and  can be used as a password field.

Button:
 It  displays a  text string or bitmap image or both   indicating a command, When  user presses the Button  with a finger or clicks it with a mouse to initiate that command.
After a Button command is clicked then user can perform various events like navigation, validation, converter etc..
StackLayout:
It  organizes our  views in a one-dimensional line  either horizontally or vertically.

Step1: Make Your MainPage as a start up page.

Step2:
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.

 1,152 total views,  1 views today

Leave a Reply