Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using BHS.Utils;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Reflection.Emit;
- using System.Text;
- using Xamarin.Forms;
- namespace BHS.Pages
- {
- public class MenuPage : ContentPage
- {
- public ListView Menu { get; set; }
- public MenuPage()
- {
- Icon = "drawable/home.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",
- }
- };
- var layout = new StackLayout
- {
- Spacing = 0,
- VerticalOptions = LayoutOptions.FillAndExpand
- };
- layout.Children.Add(menuLabel);
- layout.Children.Add(Menu);
- Content = layout;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement