Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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
            });
        }