|
|
@ -4,7 +4,6 @@
|
|
|
|
x:Class="ShoopNCook.Views.RecipeView"
|
|
|
|
x:Class="ShoopNCook.Views.RecipeView"
|
|
|
|
Margin="4,2">
|
|
|
|
Margin="4,2">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Border
|
|
|
|
<Border
|
|
|
|
Style="{StaticResource SecondaryBorderShadow}"
|
|
|
|
Style="{StaticResource SecondaryBorderShadow}"
|
|
|
|
StrokeShape="RoundRectangle 30">
|
|
|
|
StrokeShape="RoundRectangle 30">
|
|
|
@ -17,25 +16,27 @@
|
|
|
|
MinimumWidthRequest="150"
|
|
|
|
MinimumWidthRequest="150"
|
|
|
|
MaximumWidthRequest="150"
|
|
|
|
MaximumWidthRequest="150"
|
|
|
|
RowDefinitions="*, Auto">
|
|
|
|
RowDefinitions="*, Auto">
|
|
|
|
|
|
|
|
|
|
|
|
<Grid.GestureRecognizers>
|
|
|
|
<Grid.GestureRecognizers>
|
|
|
|
<TapGestureRecognizer Tapped="OnRecipeTapped"/>
|
|
|
|
<TapGestureRecognizer Tapped="OnRecipeTapped"/>
|
|
|
|
</Grid.GestureRecognizers>
|
|
|
|
</Grid.GestureRecognizers>
|
|
|
|
|
|
|
|
|
|
|
|
<Border
|
|
|
|
<Border
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Row="0"
|
|
|
|
Stroke="Transparent"
|
|
|
|
Stroke="Transparent"
|
|
|
|
StrokeShape="RoundRectangle 20"
|
|
|
|
StrokeShape="RoundRectangle 20"
|
|
|
|
BackgroundColor="{StaticResource ImageBackground}">
|
|
|
|
BackgroundColor="{StaticResource ImageBackground}">
|
|
|
|
<Grid>
|
|
|
|
<Grid>
|
|
|
|
<Image x:Name="RecipeImage"
|
|
|
|
<Image
|
|
|
|
Aspect="AspectFill"
|
|
|
|
Source="{Binding Image}"
|
|
|
|
MinimumHeightRequest="155"
|
|
|
|
Aspect="AspectFill"
|
|
|
|
MinimumWidthRequest="130"
|
|
|
|
MinimumHeightRequest="155"
|
|
|
|
MaximumHeightRequest="155"
|
|
|
|
MinimumWidthRequest="130"
|
|
|
|
MaximumWidthRequest="130"/>
|
|
|
|
MaximumHeightRequest="155"
|
|
|
|
|
|
|
|
MaximumWidthRequest="130"/>
|
|
|
|
<HorizontalStackLayout
|
|
|
|
<HorizontalStackLayout
|
|
|
|
x:Name="Stars"
|
|
|
|
|
|
|
|
VerticalOptions="End"
|
|
|
|
VerticalOptions="End"
|
|
|
|
|
|
|
|
x:Name="Stars"
|
|
|
|
HorizontalOptions="End"
|
|
|
|
HorizontalOptions="End"
|
|
|
|
Margin="0, 0, 15, 2">
|
|
|
|
Margin="0, 0, 15, 2">
|
|
|
|
<Image
|
|
|
|
<Image
|
|
|
@ -60,10 +61,10 @@
|
|
|
|
<VerticalStackLayout Grid.Row="1">
|
|
|
|
<VerticalStackLayout Grid.Row="1">
|
|
|
|
<Label
|
|
|
|
<Label
|
|
|
|
TextColor="{StaticResource TextColorPrimary}"
|
|
|
|
TextColor="{StaticResource TextColorPrimary}"
|
|
|
|
x:Name="TitleLabel"/>
|
|
|
|
Text="{Binding Name}"/>
|
|
|
|
<Label
|
|
|
|
<Label
|
|
|
|
TextColor="{StaticResource TextColorSecondary}"
|
|
|
|
TextColor="{StaticResource TextColorSecondary}"
|
|
|
|
x:Name="SubtitleLabel"/>
|
|
|
|
Text="{Binding CookTimeMins, StringFormat='{0} mins'}"/>
|
|
|
|
</VerticalStackLayout>
|
|
|
|
</VerticalStackLayout>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Border>
|
|
|
|