Example #1
0
        public HopsGuidePage()
        {
            //Set the title on the navigation bar to the selected hop
            Title = "Hops Hops Hops";
            //Set the StyleId for Xamarin Test Cloud
            StyleId = "HopsHopsHopsPage";

            //Generate generic views from "Views" folder
            StackLayout hopHeader = new HopListHeader();

            hopList = new HopListView {
                StyleId = "hopListView"
            };

            search = new SearchBar {
                Placeholder       = "Search Hops",
                HorizontalOptions = LayoutOptions.FillAndExpand
            };

            Title   = "Hops Hops Hops";
            Content = new StackLayout {
                Spacing  = 0,
                Children =
                {
                    search,
                    hopHeader,
                    hopList,
                }
            };
        }
        public IBUAddHopPage(bool nativeCheck)
        {
            _nativeCheck = nativeCheck;

            //Set the title on the navigation bar to the selected hop
            Title = "Add Hops";
            //Set the StyleId for Xamarin Test Cloud
            StyleId = "AddHopsPage";

            //Create generic views from "Views" folder
            StackLayout hopHeader = new HopListHeader();

            hopList = new HopListView {
                StyleId = "hopListView"
            };

            search = new SearchBar {
                StyleId           = "searchBar",
                Placeholder       = "Search Hops",
                HorizontalOptions = LayoutOptions.FillAndExpand
            };

            cancel = new HopThemedButton()
            {
                StyleId       = "cancelButton",
                Text          = "Cancel",
                WidthRequest  = (double)(App.ScreenWidth),
                BorderColor   = Color.Transparent,
                BorderRadius  = 0,
                HeightRequest = 50,
                Font          = Font.SystemFontOfSize(NamedSize.Large)
            };

            Content = new StackLayout {
                Spacing  = 0,
                Children =
                {
                    search,
                    hopHeader,
                    hopList,
                    cancel
                }
            };
        }