public App() { var mainLabel = new Label { XAlign = TextAlignment.Center, Text = "Starting test run..." }; var testsLabel = new Label { XAlign = TextAlignment.Center, Text = "" }; // The root page of your application MainPage = new ContentPage { Content = new StackLayout { VerticalOptions = LayoutOptions.Center, Children = { mainLabel, testsLabel } } }; try { runner = new XFormsPortableRunner(mainLabel, testsLabel, Xamarin.Forms.Device.BeginInvokeOnMainThread); } catch(Exception e) { testsLabel.Text += e.ToString(); } TestSdk(testsLabel); }
public App() { var mainLabel = new Label { XAlign = TextAlignment.Center, Text = "Starting test run..." }; var testsLabel = new Label { XAlign = TextAlignment.Center, Text = "" }; // The root page of your application MainPage = new ContentPage { Content = new StackLayout { VerticalOptions = LayoutOptions.Center, Children = { mainLabel, testsLabel } } }; try { runner = new XFormsPortableRunner(mainLabel, testsLabel, Xamarin.Forms.Device.BeginInvokeOnMainThread); } catch (Exception e) { testsLabel.Text += e.ToString(); } TestSdk(testsLabel); }