Skip to content

Instantly share code, notes, and snippets.

@rafaelrmou
Created April 15, 2015 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelrmou/32c280718a8c7895e872 to your computer and use it in GitHub Desktop.
Save rafaelrmou/32c280718a8c7895e872 to your computer and use it in GitHub Desktop.
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;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment