Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. RootElement CreateRootElement ()
  2. {
  3. return new RootElement ("RootElement")
  4. {
  5. new Section ("Caption1") {
  6. (createFirstElement ())
  7. },
  8. new Section ("Caption2")) {
  9. (createSecondElement ())
  10. }
  11. };
  12. }
  13.  
  14. List<Element> createFirstElement ()
  15. {
  16. List<Element> myList;
  17. //fill this list
  18. return myList;
  19. }
  20.  
  21. private UILabel LabelForSection(string title) {
  22. RectangleF frame = new RectangleF(0, 0, UIScreen.MainScreen.Bounds.Width, 22);
  23. UILabel label = new UILabel(frame);
  24. label.TextAlignment = UITextAlignment.Right;
  25. label.Text = "Caption1";
  26. return label;
  27. }
  28.  
  29. new Section(LabelForSection("Caption1"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement