Add project files.
This commit is contained in:
52
MonkeyFinder/View/DetailsPage.xaml
Normal file
52
MonkeyFinder/View/DetailsPage.xaml
Normal file
@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="MonkeyFinder.DetailsPage"
|
||||
xmlns:viewmodel="clr-namespace:MonkeyFinder.ViewModel"
|
||||
x:DataType="viewmodel:MonkeyDetailsViewModel"
|
||||
Title="{Binding Monkey.Name}">
|
||||
<ScrollView>
|
||||
<VerticalStackLayout>
|
||||
<Grid ColumnDefinitions="*,Auto,*"
|
||||
RowDefinitions="160,Auto">
|
||||
<BoxView BackgroundColor="{StaticResource Primary}"
|
||||
Grid.ColumnSpan="3"
|
||||
HeightRequest="160"
|
||||
HorizontalOptions="FillAndExpand"/>
|
||||
<Frame Grid.RowSpan="2"
|
||||
Grid.Column="1"
|
||||
HeightRequest="160"
|
||||
WidthRequest="160"
|
||||
CornerRadius="80"
|
||||
HorizontalOptions="Center"
|
||||
IsClippedToBounds="True"
|
||||
Padding="0"
|
||||
Margin="0,80,0,0">
|
||||
<Image Aspect="AspectFill"
|
||||
HeightRequest="160"
|
||||
WidthRequest="160"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center"
|
||||
Source="{Binding Monkey.Image}"/>
|
||||
</Frame>
|
||||
|
||||
</Grid>
|
||||
|
||||
<Button Text="Show on Map"
|
||||
Command="{Binding OpenMapCommand}"
|
||||
HorizontalOptions="Center"
|
||||
WidthRequest="200"
|
||||
Margin="8"
|
||||
Style="{StaticResource ButtonOutline}"/>
|
||||
|
||||
<VerticalStackLayout Padding="10" Spacing="10">
|
||||
<Label Text="{Binding Monkey.Details}"
|
||||
Style="{StaticResource MediumLabel}"/>
|
||||
<Label Text="{Binding Monkey.Location, StringFormat='Location: {0}'}"
|
||||
Style="{StaticResource SmallLabel}"/>
|
||||
<Label Text="{Binding Monkey.Population, StringFormat='Population: {0}'}"
|
||||
Style="{StaticResource SmallLabel}"/>
|
||||
</VerticalStackLayout>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
Reference in New Issue
Block a user