-
-
Save mattregul/993b7e3e719a9b636b6cc74c5dce2253 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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