Beispiel #1
0
        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;
        }
Beispiel #2
0
        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());
        }
Beispiel #3
0
        public MakeEventPage(FeedPage feedPage)
        {
            this.feedPage = feedPage;

            Content = new StackLayout
            {
                Children =
                {
                    new Label {
                        Text = "Hello ContentPage"
                    }
                }
            };
        }
Beispiel #4
0
        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 }
            };
        }