public App() { InitializeComponent(); MainPage = new FirstApp.MainPage(); //var content = new ContentPage //{ // Title = "MyFirstApp"; // Content = new StackLayout // { // VerticalOptions = LayoutOptions.Center, // Children = // { // new Label // { // HorizontalTextAlignment = TextAlignment.Center, // Text = "Welcome to Xamarin Forms!" // } // } // } //}; //MainPage = new NavigationPage(content); }
public App() { InitializeComponent(); MainPage = new FirstApp.MainPage(); }