View CreateComment() { var comment = new CommentEditor { VerticalOptions = LayoutOptions.EndAndExpand, Font = Font.OfSize(Fonts.OpenSansLight, 14), Hint = "Add Comment", HeightRequest = 115 }; comment.SetBinding ( CommentEditor.TextProperty, "Comments", BindingMode.TwoWay ); var view = new StackLayout { Orientation = StackOrientation.Vertical, Children = { CreateDivider(), comment, CreateDivider() } }; return view; }
View CreateCommentBox () { var commentBox = new CommentEditor { HorizontalOptions = LayoutOptions.CenterAndExpand, VerticalOptions = LayoutOptions.EndAndExpand, Font = Font.OfSize(Fonts.OpenSansLight, 14), Hint = "Add Comment", WidthRequest = 275, HeightRequest = 115 }; commentBox.SetBinding ( CommentEditor.TextProperty, "ConferenceSurveyComments", BindingMode.OneWayToSource ); return commentBox; }