protected override void OnLayout(LayoutBuilder layout) { var statusBarHeight = UIApplication.SharedApplication.StatusBarFrame.Height; var tabs = layout.View(Tabs) .Left(0).Right(0).Bottom(0).AutoHeight(); layout.View(ProfileForm) .Above(tabs.LayoutBounds, 0).Left(0).Right(0).Top(0); layout.View(TodoList) .Above(tabs.LayoutBounds, 0).Left(0).Right(0).Top(0); }
protected override void OnLayout(LayoutBuilder layout) { if (DisplayButtons) { layout.View(Cancel) .Left(17).CenterVertically().AutoSize(); layout.View(Title) .CenterHorizontally().CenterVertically().AutoSize(); layout.View(Done) .Right(17).CenterVertically().AutoSize(); } else { layout.View(Title) .Left(20).Top(46).AutoSize(); } }
protected override void OnLayout(LayoutBuilder layout) { layout.View(TitleLabel).Left(0).Right(0).Top(0).Bottom(0); }