public DescriptionPage(Beer selectedBeer)
        {
            //Set our selected beer
            SelectedBeer = selectedBeer;

            var photo = new ImageCircle
            {
                WidthRequest = this.Width,
                HeightRequest = 200,
                Aspect = Aspect.AspectFill,
                HorizontalOptions = LayoutOptions.Center
            };

            photo.Source = ImageSource.FromUri(new Uri(SelectedBeer.Labels.Large));

            Content = new StackLayout
            { 
                Children =
                {
                    photo,
                    new Label
                    {
                        Text = selectedBeer.Description,
                        XAlign = TextAlignment.Center
                    }
                }
            };
        }
 public BeerDetailViewModel (Beer beer)
 {
     Beer = beer;
 }
Beispiel #3
0
 public Feature(Beer beer, Brewery brewery)
 {
     Beer = beer;
     Brewery = brewery;
 }
        public BeerDetailPage (Beer beer)
        {
            InitializeComponent ();

            BindingContext = new BeerDetailViewModel (beer);
        }