sharee.bike-App/ShareeSharedGuiLib/View/Bike/RentalProcess/RentalProcessBikeInfo.xaml
2023-08-31 12:20:06 +02:00

63 lines
1.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:conv="clr-namespace:TINK.View"
x:Class="ShareeSharedGuiLib.View.Bike.RentalProcess.RentalProcessBikeInfo">
<ContentView.Resources>
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="StringNotNullOrEmpty_Converter"/>
</ContentView.Resources>
<ContentView.Content>
<!--Bike info-->
<Frame
Padding="20,30,20,30"
Margin="0,5,0,5"
HorizontalOptions="FillAndExpand"
BackgroundColor="White">
<Grid
ColumnDefinitions="Auto,*"
RowDefinitions="Auto,Auto"
RowSpacing="0">
<!-- Icon of the bike -->
<Image
Grid.Column="0"
Grid.Row="0"
Grid.RowSpan="2"
Source="{Binding BikeInRentalProcess.DisplayedBikeImageSourceString}"
HeightRequest="60"
Aspect="AspectFit"
HorizontalOptions="Start"
VerticalOptions="End"/>
<!-- Name of the bike -->
<Label
Grid.Column="1"
Grid.Row="0"
FontAttributes="Bold"
FontSize="Large"
HorizontalTextAlignment="Right"
IsVisible="{Binding BikeInRentalProcess.DisplayName, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
Text="{Binding BikeInRentalProcess.DisplayName}"/>
<!-- Id of the bike -->
<Label
Grid.Column="1"
Grid.Row="1"
FontAttributes="Bold"
HorizontalTextAlignment="Right"
VerticalTextAlignment="Start"
IsVisible="{Binding BikeInRentalProcess.DisplayId, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
Text="{Binding BikeInRentalProcess.DisplayId}"/>
</Grid>
</Frame>
</ContentView.Content>
</ContentView>