Example #1
0
        public TweetView()
        {
            this.SetBinding(TitleProperty, "Title");

            var userLayout  = TwitterViewHelpers.GetHeaderUserLayout();
            var tweetLayout = this.CreateTweetLayot();


            Content = new ScrollView {
                Content = new StackLayout {
                    VerticalOptions = LayoutOptions.FillAndExpand,
                    Padding         = 15,
                    Children        = { userLayout, tweetLayout }
                }
            };
        }
Example #2
0
        public AddTweetView()
        {
            this.SetBinding(TitleProperty, "Title");

            var headerUserInfoLayout = TwitterViewHelpers.GetHeaderUserLayout();
            var tweetEntryLayout     = GetTweetEntryLayout();
            var imageLayout          = GetImageLayout();

            Content = new ScrollView {
                Content = new StackLayout {
                    VerticalOptions = LayoutOptions.FillAndExpand,
                    Padding         = 15,
                    Children        = { headerUserInfoLayout, tweetEntryLayout, imageLayout }
                }
            };

            var toolbarItemAdd = new ToolbarItem();

            //toolbarItemAdd.Text = "Send";
            toolbarItemAdd.Icon = "send.png";
            toolbarItemAdd.SetBinding(ToolbarItem.CommandProperty, "SendTweetCommand");
            ToolbarItems.Add(toolbarItemAdd);
        }