private void OnMapsClicked(object sender, EventArgs e)
{
var mapsButton = sender as Button;
// Create menu to show map options
var mapsMenu = new PopupMenu(this, mapsButton);
mapsMenu.MenuItemClick += OnMapsMenuItemClicked;
// Create menu options
foreach (var title in titles)
mapsMenu.Menu.Add(title);
// Show menu in the view
mapsMenu.Show();
}