Tutorial by Examples

An alert box can be popped-up on a Xamarin.Forms Page by the method, DisplayAlert. We can provide a Title, Body (Text to be alerted) and one/two Action Buttons. Page offers two overrides of DisplayAlert method. public Task DisplayAlert (String title, String message, String cancel) This overri...
var alertResult = await DisplayAlert("Alert Title", Alert Message, null, "OK"); if(!alertResult) { //do your stuff. } Here we will get Ok click action.

Page 1 of 1