Advertisement
Guest User

Untitled

a guest
May 25th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. using BHS.Utils;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Reflection.Emit;
  6. using System.Text;
  7. using Xamarin.Forms;
  8.  
  9. namespace BHS.Pages
  10. {
  11. public class MenuPage : ContentPage
  12. {
  13. public ListView Menu { get; set; }
  14. public MenuPage()
  15. {
  16. Icon = "drawable/home.png";
  17. Title = "Menu"; // The Title property must be set.
  18.  
  19. Menu = new MenuListView();
  20.  
  21. var menuLabel = new ContentView
  22. {
  23. Padding = new Thickness(10, 36, 0, 5),
  24. Content = new Label
  25. {
  26. TextColor = Color.FromHex("AAAAAA"),
  27. Text = "MENU",
  28. }
  29. };
  30.  
  31. var layout = new StackLayout
  32. {
  33. Spacing = 0,
  34. VerticalOptions = LayoutOptions.FillAndExpand
  35. };
  36. layout.Children.Add(menuLabel);
  37. layout.Children.Add(Menu);
  38.  
  39. Content = layout;
  40. }
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement