Example #1
0
        public DetailPage(ListItem item)
		{ 
            Label titleLabel = new Label
            {
                Text = item.Title,
                FontSize = 40
            };

            Label descLabel = new Label
            {
                Text = item.Description,
                FontSize = 40
            };

            var stackLayout = new StackLayout
            {
                Children = { titleLabel, descLabel }
            };

            this.Content = stackLayout;

        }
Example #2
0
		public DetailPage (ListItem item)
		{
			InitializeComponent ();

			this.BindingContext = item;
		}