Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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;
        }