private void ShowSaveMapDialog()
{
// Create a dialog to get map information (title and description)
AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);
// Create the layout
LinearLayout dialogLayout = new LinearLayout(this);
dialogLayout.Orientation = Orientation.Vertical;
// Create a text box for entering the map title
_titleText = new EditText(this);
_titleText.Hint = "Webmap Title";
// Create a text box for entering the map description
_descriptionText = new EditText(this);
_descriptionText.Hint = "Description";
// Create a button to dismiss the dialog (and proceed with saving the map)
Button okButton = new Button(this);
okButton.Text = "Save Map";
// Handle the click event for the OK button
okButton.Click += OnCloseSaveDialog;
// Add the controls to the dialog
dialogLayout.AddView(_titleText);
dialogLayout.AddView(_descriptionText);
dialogLayout.AddView(okButton);
dialogBuilder.SetView(dialogLayout);
dialogBuilder.SetTitle("Save Map");
// Show the dialog
_saveDialog = dialogBuilder.Show();
}