user2159696
user2159696

Reputation: 41

Xamarin.Forms - Popup Menu

Can any one help me write code for a Popupmenu using Xamarin.Forms? I also want to position the popups in certain areas of the screen like top left, top right, bottom right, and bottom left.

Upvotes: 1

Views: 7492

Answers (1)

Peter Schwartz
Peter Schwartz

Reputation: 33

This webpage here should help you out quite a bit...

https://developer.xamarin.com/guides/xamarin-forms/user-interface/navigation/pop-ups/

I believe you will want to go with something like this :

async void OnActionSheetSimpleClicked (object sender, EventArgs e)
{
    var action = await DisplayActionSheet ("ActionSheet: Send to?", "Cancel", null, "Email", "Twitter", "Facebook");
    Debug.WriteLine ("Action: " + action);
}

This is simply how I interpreted your definition of popupmenu. If you are looking for just a simple alert there are other references on the webpage for that.

Upvotes: 3

Related Questions