private RootElement GetRoot() { var rect = new RectangleF(PadX, 0, View.Bounds.Width - 30 - PadX * 2, 100); _detailView = new SeriesDetailView(_series, rect); _triangleView = new TriangleView (UIColor.FromRGB(247, 247, 247), UIColor.FromRGB (171, 171, 171)) { Frame = new RectangleF (43, _detailView.Bounds.Height - 7, 16, 8) }; _containerView = new UIView(rect); _containerView.Add(_detailView); _containerView.Add(_triangleView); var text = new StyledMultilineElement(_series.Description); text.TextColor = UIColor.DarkGray; text.LineBreakMode = UILineBreakMode.WordWrap; text.Font = UIFont.ItalicSystemFontOfSize(14); text.DetailColor = text.TextColor; var main = new Section(_containerView) { text }; var root = new RootElement("") { main }; return root; }
private RootElement GetRoot() { var rect = new RectangleF(PadX, 0, View.Bounds.Width - 30 - PadX * 2, 100); _detailView = new SeriesDetailView(_series, rect); _triangleView = new TriangleView(UIColor.FromRGB(247, 247, 247), UIColor.FromRGB(171, 171, 171)) { Frame = new RectangleF(43, _detailView.Bounds.Height - 7, 16, 8) }; _containerView = new UIView(rect); _containerView.Add(_detailView); _containerView.Add(_triangleView); var text = new StyledMultilineElement(_series.Description); text.TextColor = UIColor.DarkGray; text.LineBreakMode = UILineBreakMode.WordWrap; text.Font = UIFont.ItalicSystemFontOfSize(14); text.DetailColor = text.TextColor; var main = new Section(_containerView) { text }; var root = new RootElement("") { main }; return(root); }