sharee.bike-App/SharedGui/View/Bike/RentalProcess/RentalProcessStepBarFinished.xaml
2024-04-09 12:53:23 +02:00

88 lines
3.1 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:ShareeBike.View;assembly=SharedBusinessLogic"
xmlns:rental_process="clr-namespace:ShareeBike.ViewModel.Bikes;assembly=SharedBusinessLogic"
xmlns:resources="clr-namespace:ShareeBike.MultilingualResources;assembly=SharedBusinessLogic"
x:Class="SharedGui.View.Bike.RentalProcess.RentalProcessStepBarFinished">
<ContentView.Resources>
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="StringNotNullOrEmpty_Converter"/>
<x:String x:Key="check">&#xf00c;</x:String>
<x:String x:Key="xmark">&#xf00d;</x:String>
</ContentView.Resources>
<ContentView.Content>
<!-- Progress bar -->
<Grid
ColumnDefinitions="1*,80,40"
RowDefinitions="15,50,15"
RowSpacing="0">
<Frame
Grid.Column="0"
Grid.ColumnSpan="3"
Grid.Row="1"
BackgroundColor="{DynamicResource process-step-succeeded}"
Padding="0">
<Label
Padding="40,0,0,0"
VerticalOptions="Center"
TextColor="White"
FontAttributes="Bold"
Text="">
<Label.Triggers>
<MultiTrigger TargetType="Label">
<MultiTrigger.Conditions>
<BindingCondition Binding="{Binding RentalProcess.State}" Value="{x:Static rental_process:CurrentRentalProcess.StartReservationOrRental}" />
</MultiTrigger.Conditions>
<Setter Property="Text" Value="{x:Static resources:AppResources.StatusTextReserved}" />
</MultiTrigger>
<MultiTrigger TargetType="Label">
<MultiTrigger.Conditions>
<BindingCondition Binding="{Binding RentalProcess.State}" Value="{x:Static rental_process:CurrentRentalProcess.OpenLock}" />
</MultiTrigger.Conditions>
<Setter Property="Text" Value="{x:Static resources:AppResources.StatusTextLockOpened}" />
</MultiTrigger>
<MultiTrigger TargetType="Label">
<MultiTrigger.Conditions>
<BindingCondition Binding="{Binding RentalProcess.State}" Value="{x:Static rental_process:CurrentRentalProcess.CloseLock}" />
</MultiTrigger.Conditions>
<Setter Property="Text" Value="{x:Static resources:AppResources.StatusTextLockClosed}" />
</MultiTrigger>
<MultiTrigger TargetType="Label">
<MultiTrigger.Conditions>
<BindingCondition Binding="{Binding RentalProcess.State}" Value="{x:Static rental_process:CurrentRentalProcess.EndRental}" />
</MultiTrigger.Conditions>
<Setter Property="Text" Value="{x:Static resources:AppResources.StatusTextRentalEnded}" />
</MultiTrigger>
</Label.Triggers>
</Label>
</Frame>
<Frame
Grid.Column="1"
Grid.Row="0"
Grid.RowSpan="3"
BackgroundColor="{DynamicResource process-step-succeeded}"
BorderColor="White"
CornerRadius="40">
<Image>
<Image.Source>
<FontImageSource
Glyph="{StaticResource check}"
FontFamily="FA-S"
Size="22"
Color="White"/>
</Image.Source>
</Image>
</Frame>
</Grid>
</ContentView.Content>
</ContentView>