private StackLayout GenerateLayoutForCommentHeader(Comments comment) { var stack = new StackLayout { Orientation = StackOrientation.Horizontal }; stack.Children.Add(GenericsContent.GenerateLabelWithLayoutOption(comment.Name, LayoutOptions.Start)); stack.Children.Add(GenerateStarForCommentMark(comment.Rate)); return stack; }
private StackLayout GenerateComment(Comments comment) { var stack = new StackLayout() { Padding = new Thickness(0, 10) }; stack.Children.Add(GenerateLayoutForCommentHeader(comment)); stack.Children.Add(GenerateCommentField(comment.Comment)); return stack; }