private StackLayout GenerateCommentsView(List <Comments> comments) { var stack = new StackLayout(); if (comments.Count > 0) { stack.Children.Add(GenericsContent.GenerateHeaderLabel("Comments")); foreach (var comment in comments) { stack.Children.Add(GenerateComment(comment)); } } return(stack); }
private StackLayout GenerateReferencesLabels(List <string> references) { var stack = new StackLayout { Orientation = StackOrientation.Vertical }; if (references.Count > 0) { stack.Children.Add(GenericsContent.GenerateHeaderLabel("Web-sites")); foreach (var reference in references) { stack.Children.Add(GenerateLinkRef(reference)); } ; } return(stack); }
private Frame GenerateCreatedCommentForm() { var stack = new StackLayout(); stack.Children.Add(GenericsContent.GenerateHeaderLabel("Leave yours commnet")); stack.Children.Add(new Frame { OutlineColor = Color.Silver, Content = GenerateEditor() }); var picker = GeneratePickerForCommentRate(); stack.Children.Add(picker); stack.Children.Add(GenerateCommentButton()); return(new Frame { Content = stack, HasShadow = true, OutlineColor = Color.Silver }); }