Created
January 9, 2018 18:49
Revisions
-
Artgerto created this gist
Jan 9, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ public App () { // The root page of your application var layout = new StackLayout { VerticalOptions = LayoutOptions.Center, Children = { new Label { HorizontalTextAlignment = TextAlignment.Center, Text = "Welcome to Xamarin Forms!" } } }; MainPage = new ContentPage { Content = layout }; Button button = new Button { Text = "Click Me" }; button.Clicked += async (s, e) => { await MainPage.DisplayAlert("Alert", "You clicked me", "OK"); }; layout.Children.Add(button); }