Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RootElement CreateRootElement ()
- {
- return new RootElement ("RootElement")
- {
- new Section ("Caption1") {
- (createFirstElement ())
- },
- new Section ("Caption2")) {
- (createSecondElement ())
- }
- };
- }
- List<Element> createFirstElement ()
- {
- List<Element> myList;
- //fill this list
- return myList;
- }
- private UILabel LabelForSection(string title) {
- RectangleF frame = new RectangleF(0, 0, UIScreen.MainScreen.Bounds.Width, 22);
- UILabel label = new UILabel(frame);
- label.TextAlignment = UITextAlignment.Right;
- label.Text = "Caption1";
- return label;
- }
- new Section(LabelForSection("Caption1"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement