public DetailsPage(Monkey monkey)
    {
      this.Title = monkey.Name;

      var details = new Label{
        Text = monkey.Details
      };

      var image = new Image
      {
        Source = monkey.Image,
        Aspect = Aspect.AspectFit,
        VerticalOptions = LayoutOptions.FillAndExpand
      };

      Content = new ScrollView
      {
        Padding = 20,
        Content = new StackLayout
        {
          Spacing = 10,
          VerticalOptions = LayoutOptions.FillAndExpand,
          Children = { details, image}
        }
      };
    }
 public DetailsPage(Monkey monkey)
 {
     InitializeComponent();
     BindingContext = new DetailsViewModel(monkey);
 }
Beispiel #3
0
 public DetailsPage(Monkey monkey)
 {
     InitializeComponent();
     this.BindingContext = monkey;
 }
 public DetailsPage(Monkey monkey)
 {
     InitializeComponent();
 }