top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is difference between DisplayAlert and DisplayActionSheet in Xamarin?

0 votes
422 views
What is difference between DisplayAlert and DisplayActionSheet in Xamarin?
posted Oct 10, 2017 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Using DisplayActionSheet we can Perform Perform Any kind of Action.

var x = await App.Current.MainPage.DisplayActionSheet("Title", "Cancel", null, "Button1", "Button2", "Button3","Button4");
Console.WriteLine(x);

Here,Above Example we take 4 buttons and using DisplayActionSheet we can perform Any kind of Action on that buttons.
Using DisplayAlert we can't do that.Using DisplayAlert we can only show Alert box to the user.

answer Aug 14, 2019 by Rushabh Verma R.
...