public App() { Label titleLabel = new Label { HorizontalOptions = LayoutOptions.Center, Text = "C3P Xamarin Tests", FontSize = 24, TextColor = Color.Black, }; Button testButton = new Button { HorizontalOptions = LayoutOptions.Center, Text = "Run Tests", TextColor = Color.White, FontAttributes = FontAttributes.Bold, BorderColor = Color.Black, BorderRadius = 4, BorderWidth = 1, WidthRequest = 100, BackgroundColor = Color.FromRgb(160, 160, 255), }; testButton.Clicked += this.OnTestButtonClicked; testLogView = new TestLogView { VerticalOptions = LayoutOptions.FillAndExpand, }; StackLayout headerPanel = new StackLayout { Padding = new Thickness(0, 30, 0, 20), Spacing = 15, Children = { titleLabel, testButton, }, BackgroundColor = Color.FromRgb(208, 208, 255), }; this.MainPage = new ContentPage { Content = new StackLayout { VerticalOptions = LayoutOptions.FillAndExpand, Spacing = 0, BackgroundColor = Color.White, Children = { headerPanel, testLogView, } } }; }
public Tests(TestLogView log) { this.log = log; }