Example #1
0
        public MenuPage()
        {
            Icon = "settings.png";
            Title = "menu"; // The Title property must be set.
            Menu = new MenuListView ();

            var menuLabel = new ContentView {
                Padding = new Thickness (10, 36, 0, 5),
                Content = new Label {
                    TextColor = Color.FromHex ("AAAAAA"),
                    Text = "MENU",
                }
            };

            //this.Padding = new Thickness(10, Device.OnPlatform(50, 0, 0), 10, 5);

            var layout = new StackLayout {
                Spacing = 0,
                VerticalOptions = LayoutOptions.FillAndExpand
            };
            layout.Children.Add (menuLabel);
            layout.Children.Add (Menu);

            Content = layout;
        }
Example #2
0
        public MenuPages()
        {
            Title = "menu"; // The Title property must be set.
            if (Device.OS == TargetPlatform.Android) {
                Icon = "hsficon.png";
            } else {
                Icon = "masterIcon.png";
            }

            Menu = new MenuListView ();
            /*
            var menuLabel = new ContentView {
                Padding = new Thickness (100, 36, 0, 5),
                Content = new Label {
                    TextColor = Color.White,
                    Text = "MENU",
                }
            };

               */
            //BackgroundColor = Color.FromRgb (89,89,89);
            var layout = new StackLayout {
                Spacing = 0,
                //Padding = new Thickness (0, 100, 0, 0),
                VerticalOptions = LayoutOptions.FillAndExpand

            };
            layout.Children.Add (Menu);

            Content = layout;
        }