예제 #1
0
파일: TrailPage.cs 프로젝트: Zepsen/App1
 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;
 }
예제 #2
0
파일: TrailPage.cs 프로젝트: Zepsen/App1
        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;
        }