Skip to content

Instantly share code, notes, and snippets.

@jamesmontemagno
Created June 13, 2017 19:47
Show Gist options
  • Select an option

  • Save jamesmontemagno/9d91a3590f5661ebcfc992ec05e680b6 to your computer and use it in GitHub Desktop.

Select an option

Save jamesmontemagno/9d91a3590f5661ebcfc992ec05e680b6 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="ImageSearch.Shared.View.DetailsPage"
Title="{Binding SelectedImage.Title}">
<ContentPage.Content>
<ScrollView HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<StackLayout Padding="10">
<Image
HeightRequest="200"
WidthRequest="200"
HorizontalOptions="CenterAndExpand"
Aspect="AspectFill"
Source="{Binding SelectedImage.ImageLink}"/>
<Label Text="{Binding SelectedImage.Title}" TextColor="Black" FontAttributes="Bold" HorizontalOptions="FillAndExpand"/>
<Label Text="{Binding SelectedImage.FileFormat}" TextColor="Black" FontSize="Large"/>
<Label Text="{Binding SelectedImage.ContextLink}" TextColor="Black" FontSize="Micro"/>
<Button Text="Analyze Image" Clicked="Button_Clicked"/>
<ActivityIndicator IsRunning="{Binding IsBusy}" IsVisible="{Binding IsBusy}"/>
</StackLayout>
</ScrollView>
</ContentPage.Content>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment