Skip to content

Instantly share code, notes, and snippets.

@mattregul
Created March 17, 2017 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattregul/993b7e3e719a9b636b6cc74c5dce2253 to your computer and use it in GitHub Desktop.
Save mattregul/993b7e3e719a9b636b6cc74c5dce2253 to your computer and use it in GitHub Desktop.
using System;
using Xamarin.Forms;
namespace DisplayAlertUITest
{
public class App : Application
{
public App()
{
// The root page of your application
var content = new ContentPage
{
Title = "DisplayAlertUITest",
Content = new StackLayout
{
VerticalOptions = LayoutOptions.Center,
Children = {
new Label {
HorizontalTextAlignment = TextAlignment.Center,
Text = "Welcome to Xamarin Forms!"
}
}
}
};
MainPage = new NavigationPage(content);
}
protected override void OnStart()
{
MainPage.DisplayAlert("Title", "Message", "OK");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment