public PostPage(FeedPage feedPage) { this.feedPage = feedPage; Title = "Post"; Icon = "plus.png"; StackLayout stack = new StackLayout(); Button makeAnEventButton = new Button { Text = "MAKE AN EVENT", TextColor = Color.White, BackgroundColor = Color.Blue, HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.EndAndExpand }; Button reportAProblemButton = new Button { Text = "REPORT A PROBLEM", TextColor = Color.White, BackgroundColor = Color.Red, HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.End }; makeAnEventButton.Clicked += delegate { GoToMakeEventPage(); }; reportAProblemButton.Clicked += delegate { GoToReportProblemPage(); }; stack.Children.Add(makeAnEventButton); stack.Children.Add(reportAProblemButton); Content = stack; }
public MainTabbedPage() { NavigationPage.SetHasNavigationBar(this, true); Title = "Community Feed"; FeedPage feedPage = new FeedPage(); Children.Add(feedPage); Children.Add(new PostPage(feedPage)); Children.Add(new CommunityPage()); }
public MakeEventPage(FeedPage feedPage) { this.feedPage = feedPage; Content = new StackLayout { Children = { new Label { Text = "Hello ContentPage" } } }; }
public ReportProblemPage(FeedPage feedPage, TabbedPage mainTabbedPage) { this.feedPage = feedPage; this.mainTabbedPage = mainTabbedPage; Button pickPictureButton = new Button { Text = "Choose a picture", HorizontalOptions = LayoutOptions.CenterAndExpand, VerticalOptions = LayoutOptions.CenterAndExpand }; pickPictureButton.Clicked += OnPickPictureButtonClicked; Content = new StackLayout { Children = { pickPictureButton } }; }