mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-22 04:46:30 +02:00
Version 3.0.370
This commit is contained in:
parent
f5cf9bb22f
commit
bdb2dec1c1
233 changed files with 10252 additions and 6779 deletions
|
@ -7,7 +7,9 @@
|
|||
<ContentView.Content>
|
||||
<StackLayout>
|
||||
<Label
|
||||
Text="{x:Static resources:AppResources.MarkingDriveBatteryTitel}"/>
|
||||
Text="{x:Static resources:AppResources.MarkingDriveBatteryTitel}"
|
||||
TextType="Html"
|
||||
HorizontalOptions="CenterAndExpand"/>
|
||||
<sharedGui:BarLevelView
|
||||
x:Name="BarLevelElement"
|
||||
HorizontalOptions="CenterAndExpand"
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<!-- Nice battery images symbolizing filling level for batteries with 5 bars -->
|
||||
<Image
|
||||
x:Name="BarLevelImage"
|
||||
WidthRequest="50"
|
||||
HeightRequest="30"
|
||||
WidthRequest="60"
|
||||
HeightRequest="36"
|
||||
Aspect="AspectFit"
|
||||
HorizontalOptions="CenterAndExpand"
|
||||
IsVisible="{Binding IsBatteryChargeLevelImageVisible}"
|
||||
|
|
|
@ -0,0 +1,313 @@
|
|||
<?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"
|
||||
xmlns:sharedGui="clr-namespace:ShareeSharedGuiLib.View.Bike.RentalProcess"
|
||||
xmlns:rental_process="clr-namespace:TINK.ViewModel.Bikes;assembly=TINKLib"
|
||||
x:Class="ShareeSharedGuiLib.View.Bike.RentalProcess.RentalProcess2StepsBar">
|
||||
|
||||
<ContentView.Resources>
|
||||
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="StringNotNullOrEmpty_Converter"/>
|
||||
<x:String x:Key="check"></x:String>
|
||||
<x:String x:Key="xmark"></x:String>
|
||||
</ContentView.Resources>
|
||||
|
||||
<ContentView.Content>
|
||||
|
||||
<Grid>
|
||||
|
||||
<!-- Progress bar finished-->
|
||||
<Grid
|
||||
Grid.Row="0"
|
||||
IsVisible="False">
|
||||
|
||||
<Grid.Triggers>
|
||||
<MultiTrigger TargetType="Grid">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</MultiTrigger>
|
||||
</Grid.Triggers>
|
||||
|
||||
<sharedGui:RentalProcessStepBarFinished/>
|
||||
|
||||
</Grid>
|
||||
|
||||
<!-- 2 Steps Progress bar -->
|
||||
<Grid
|
||||
Grid.Row="0"
|
||||
IsVisible="True"
|
||||
ColumnDefinitions="*,*">
|
||||
|
||||
<Grid.Triggers>
|
||||
<MultiTrigger TargetType="Grid">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
</MultiTrigger>
|
||||
</Grid.Triggers>
|
||||
|
||||
<!--1st step-->
|
||||
<Grid
|
||||
Grid.Column="0"
|
||||
RowDefinitions="40,10"
|
||||
RowSpacing="0">
|
||||
<Frame
|
||||
Grid.Row="0"
|
||||
BackgroundColor="{DynamicResource process-step-upcoming}"
|
||||
Padding="0">
|
||||
<Frame.Triggers>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-active}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-succeeded}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-succeeded}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-failed}" />
|
||||
</MultiTrigger>
|
||||
</Frame.Triggers>
|
||||
<StackLayout
|
||||
Orientation="Horizontal"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center">
|
||||
<Label
|
||||
Text="1"
|
||||
TextColor="White"
|
||||
FontAttributes="Bold"/>
|
||||
<Image
|
||||
IsVisible="False">
|
||||
<Image.Triggers>
|
||||
<DataTrigger TargetType="Image" Binding="{Binding RentalProcess.StepIndex}" Value="1">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<DataTrigger TargetType="Image" Binding="{Binding RentalProcess.StepIndex}" Value="2">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource check}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource check}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource xmark}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
</Image.Triggers>
|
||||
</Image>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Polygon
|
||||
Grid.Row="1"
|
||||
Points="0,0 20,0 10,10"
|
||||
IsVisible="False"
|
||||
HorizontalOptions="Center">
|
||||
<Polygon.Triggers>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.None}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
<Setter Property="Fill" Value="{DynamicResource process-step-active}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
<Setter Property="Fill" Value="{DynamicResource process-step-failed}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
</MultiTrigger>
|
||||
</Polygon.Triggers>
|
||||
</Polygon>
|
||||
</Grid>
|
||||
|
||||
<!--2nd step-->
|
||||
<Grid
|
||||
Grid.Column="1"
|
||||
RowDefinitions="40,10"
|
||||
RowSpacing="0">
|
||||
<Frame
|
||||
Grid.Row="0"
|
||||
BackgroundColor="{DynamicResource process-step-upcoming}"
|
||||
Padding="0">
|
||||
<Frame.Triggers>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-upcoming}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-active}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-succeeded}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-failed}" />
|
||||
</MultiTrigger>
|
||||
</Frame.Triggers>
|
||||
<StackLayout
|
||||
Orientation="Horizontal"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center">
|
||||
<Label
|
||||
Text="2"
|
||||
TextColor="White"
|
||||
FontAttributes="Bold"/>
|
||||
<Image
|
||||
IsVisible="False">
|
||||
<Image.Triggers>
|
||||
<DataTrigger TargetType="Image" Binding="{Binding RentalProcess.StepIndex}" Value="2">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource check}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource xmark}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
</Image.Triggers>
|
||||
</Image>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Polygon
|
||||
Grid.Row="1"
|
||||
Points="0,0 20,0 10,10"
|
||||
IsVisible="False"
|
||||
HorizontalOptions="Center">
|
||||
<Polygon.Triggers>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.None}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
<Setter Property="Fill" Value="{DynamicResource process-step-active}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
<Setter Property="Fill" Value="{DynamicResource process-step-failed}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
</MultiTrigger>
|
||||
</Polygon.Triggers>
|
||||
</Polygon>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</ContentView.Content>
|
||||
|
||||
</ContentView>
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
namespace ShareeSharedGuiLib.View.Bike.RentalProcess
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class RentalProcess2StepsBar : ContentView
|
||||
{
|
||||
public RentalProcess2StepsBar ()
|
||||
{
|
||||
InitializeComponent ();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,483 @@
|
|||
<?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"
|
||||
xmlns:sharedGui="clr-namespace:ShareeSharedGuiLib.View.Bike.RentalProcess"
|
||||
xmlns:rental_process="clr-namespace:TINK.ViewModel.Bikes;assembly=TINKLib"
|
||||
x:Class="ShareeSharedGuiLib.View.Bike.RentalProcess.RentalProcess3StepsBar">
|
||||
|
||||
<ContentView.Resources>
|
||||
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="StringNotNullOrEmpty_Converter"/>
|
||||
<x:String x:Key="check"></x:String>
|
||||
<x:String x:Key="xmark"></x:String>
|
||||
</ContentView.Resources>
|
||||
|
||||
<ContentView.Content>
|
||||
|
||||
<Grid>
|
||||
|
||||
<!-- Progress bar finished-->
|
||||
<Grid
|
||||
Grid.Row="0"
|
||||
IsVisible="False">
|
||||
|
||||
<Grid.Triggers>
|
||||
<MultiTrigger TargetType="Grid">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</MultiTrigger>
|
||||
</Grid.Triggers>
|
||||
|
||||
<sharedGui:RentalProcessStepBarFinished/>
|
||||
|
||||
</Grid>
|
||||
|
||||
<!-- 3 Steps Progress bar -->
|
||||
<Grid
|
||||
Grid.Row="0"
|
||||
IsVisible="True"
|
||||
ColumnDefinitions="*,*,*">
|
||||
|
||||
<Grid.Triggers>
|
||||
<MultiTrigger TargetType="Grid">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
</MultiTrigger>
|
||||
</Grid.Triggers>
|
||||
|
||||
<!--1st step-->
|
||||
<Grid
|
||||
Grid.Column="0"
|
||||
RowDefinitions="40,10"
|
||||
RowSpacing="0">
|
||||
<Frame
|
||||
Grid.Row="0"
|
||||
BackgroundColor="{DynamicResource process-step-upcoming}"
|
||||
Padding="0">
|
||||
<Frame.Triggers>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-active}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-succeeded}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-succeeded}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-succeeded}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-failed}" />
|
||||
</MultiTrigger>
|
||||
</Frame.Triggers>
|
||||
<StackLayout
|
||||
Orientation="Horizontal"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center">
|
||||
<Label
|
||||
Text="1"
|
||||
TextColor="White"
|
||||
FontAttributes="Bold"/>
|
||||
<Image
|
||||
IsVisible="False">
|
||||
<Image.Triggers>
|
||||
<DataTrigger TargetType="Image" Binding="{Binding RentalProcess.StepIndex}" Value="1">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<DataTrigger TargetType="Image" Binding="{Binding RentalProcess.StepIndex}" Value="2">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<DataTrigger TargetType="Image" Binding="{Binding RentalProcess.StepIndex}" Value="3">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource check}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource check}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource check}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource xmark}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
</Image.Triggers>
|
||||
</Image>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Polygon
|
||||
Grid.Row="1"
|
||||
Points="0,0 20,0 10,10"
|
||||
IsVisible="False"
|
||||
HorizontalOptions="Center">
|
||||
<Polygon.Triggers>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.None}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
<Setter Property="Fill" Value="{DynamicResource process-step-active}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
<Setter Property="Fill" Value="{DynamicResource process-step-failed}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
</MultiTrigger>
|
||||
</Polygon.Triggers>
|
||||
</Polygon>
|
||||
</Grid>
|
||||
|
||||
<!--2nd step-->
|
||||
<Grid
|
||||
Grid.Column="1"
|
||||
RowDefinitions="40,10"
|
||||
RowSpacing="0">
|
||||
<Frame
|
||||
Grid.Row="0"
|
||||
BackgroundColor="{DynamicResource process-step-upcoming}"
|
||||
Padding="0">
|
||||
<Frame.Triggers>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-upcoming}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-active}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-succeeded}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-succeeded}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-failed}" />
|
||||
</MultiTrigger>
|
||||
</Frame.Triggers>
|
||||
<StackLayout
|
||||
Orientation="Horizontal"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center">
|
||||
<Label
|
||||
Text="2"
|
||||
TextColor="White"
|
||||
FontAttributes="Bold"/>
|
||||
<Image
|
||||
IsVisible="False">
|
||||
<Image.Triggers>
|
||||
<DataTrigger TargetType="Image" Binding="{Binding RentalProcess.StepIndex}" Value="2">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<DataTrigger TargetType="Image" Binding="{Binding RentalProcess.StepIndex}" Value="3">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource check}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource check}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource xmark}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
</Image.Triggers>
|
||||
</Image>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Polygon
|
||||
Grid.Row="1"
|
||||
Points="0,0 20,0 10,10"
|
||||
IsVisible="False"
|
||||
HorizontalOptions="Center">
|
||||
<Polygon.Triggers>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.None}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
<Setter Property="Fill" Value="{DynamicResource process-step-active}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
<Setter Property="Fill" Value="{DynamicResource process-step-failed}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
</MultiTrigger>
|
||||
</Polygon.Triggers>
|
||||
</Polygon>
|
||||
</Grid>
|
||||
|
||||
<!--3rd step-->
|
||||
<Grid
|
||||
Grid.Column="2"
|
||||
RowDefinitions="40,10"
|
||||
RowSpacing="0">
|
||||
<Frame
|
||||
Grid.Row="0"
|
||||
BackgroundColor="{DynamicResource process-step-upcoming}"
|
||||
Padding="0">
|
||||
<Frame.Triggers>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-upcoming}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-upcoming}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-active}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-succeeded}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Frame">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource process-step-failed}" />
|
||||
</MultiTrigger>
|
||||
</Frame.Triggers>
|
||||
<StackLayout
|
||||
Orientation="Horizontal"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center">
|
||||
<Label
|
||||
Text="3"
|
||||
TextColor="White"
|
||||
FontAttributes="Bold"/>
|
||||
<Image
|
||||
IsVisible="False">
|
||||
<Image.Triggers>
|
||||
<DataTrigger TargetType="Image" Binding="{Binding RentalProcess.StepIndex}" Value="3">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource check}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource xmark}"
|
||||
FontFamily="FA-S"
|
||||
Size="Small"
|
||||
Color="White"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
</Image.Triggers>
|
||||
</Image>
|
||||
</StackLayout>
|
||||
</Frame>
|
||||
<Polygon
|
||||
Grid.Row="1"
|
||||
Points="0,0 20,0 10,10"
|
||||
IsVisible="False"
|
||||
HorizontalOptions="Center">
|
||||
<Polygon.Triggers>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.None}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
<Setter Property="Fill" Value="{DynamicResource process-step-active}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Failed}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
<Setter Property="Fill" Value="{DynamicResource process-step-failed}" />
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Polygon">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
</MultiTrigger>
|
||||
</Polygon.Triggers>
|
||||
</Polygon>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</ContentView.Content>
|
||||
|
||||
</ContentView>
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
namespace ShareeSharedGuiLib.View.Bike.RentalProcess
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class RentalProcess3StepsBar : ContentView
|
||||
{
|
||||
public RentalProcess3StepsBar ()
|
||||
{
|
||||
InitializeComponent ();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
<?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>
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
namespace ShareeSharedGuiLib.View.Bike.RentalProcess
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class RentalProcessBikeInfo : ContentView
|
||||
{
|
||||
public RentalProcessBikeInfo ()
|
||||
{
|
||||
InitializeComponent ();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,219 @@
|
|||
<?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"
|
||||
xmlns:rental_process="clr-namespace:TINK.ViewModel.Bikes;assembly=TINKLib"
|
||||
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
||||
xmlns:sharedGui="clr-namespace:ShareeSharedGuiLib.View.Bike.RentalProcess"
|
||||
x:Class="ShareeSharedGuiLib.View.Bike.RentalProcess.RentalProcessBookedClosedEndRental"
|
||||
IsVisible="False">
|
||||
|
||||
<ContentView.Triggers>
|
||||
<DataTrigger TargetType="ContentView"
|
||||
Binding="{Binding RentalProcess.State}"
|
||||
Value="{x:Static rental_process:CurrentRentalProcess.EndRental}">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<DataTrigger TargetType="ContentView"
|
||||
Binding="{Binding RentalProcess.State}"
|
||||
Value="{x:Static rental_process:CurrentRentalProcess.CloseLock}">
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
<Setter Property="HeightRequest" Value="0"/>
|
||||
</DataTrigger>
|
||||
</ContentView.Triggers>
|
||||
|
||||
<ContentView.Resources>
|
||||
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="StringNotNullOrEmpty_Converter"/>
|
||||
<x:String x:Key="Triangle"></x:String>
|
||||
<x:String x:Key="LocationServiceSymbol"></x:String>
|
||||
<x:String x:Key="Upload"></x:String>
|
||||
<x:String x:Key="WriteFeedback"></x:String>
|
||||
</ContentView.Resources>
|
||||
|
||||
<ContentView.Content>
|
||||
|
||||
<Frame
|
||||
Grid.Row="0"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
VerticalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
Padding="0"
|
||||
Margin="0">
|
||||
|
||||
<Grid RowDefinitions="60,Auto,Auto,1*"
|
||||
RowSpacing="0">
|
||||
|
||||
<!-- Title of rental process-->
|
||||
<Frame Grid.Row="0"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
VerticalOptions="FillAndExpand"
|
||||
BackgroundColor="{DynamicResource primary-back-title-color}"
|
||||
Padding="0"
|
||||
Margin="0">
|
||||
<Label
|
||||
Text="{x:Static resources:AppResources.ActionReturn}"
|
||||
FontSize="Large"
|
||||
TextColor="White"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center"/>
|
||||
</Frame>
|
||||
|
||||
<!--Bike info-->
|
||||
<sharedGui:RentalProcessBikeInfo Grid.Row="1"/>
|
||||
|
||||
<!-- Progress bar -->
|
||||
<sharedGui:RentalProcess3StepsBar Grid.Row="2"/>
|
||||
|
||||
<!--EndRental Content-->
|
||||
<Grid Grid.Row="3"
|
||||
RowSpacing="10"
|
||||
RowDefinitions="Auto,1*,Auto"
|
||||
Margin="0,40,0,20">
|
||||
<Grid.Triggers>
|
||||
<MultiTrigger TargetType="Grid">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="False"/>
|
||||
<Setter Property="HeightRequest" Value="0"/>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Grid">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
<BindingCondition Binding="{Binding RentalProcess.Result}" Value="{x:Static rental_process:CurrentStepStatus.Succeeded}" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="False"/>
|
||||
<Setter Property="HeightRequest" Value="0"/>
|
||||
</MultiTrigger>
|
||||
</Grid.Triggers>
|
||||
|
||||
<!--Step icon and Step text-->
|
||||
<Grid Grid.Row="0"
|
||||
Padding="30,0,0,0"
|
||||
ColumnDefinitions="20,Auto,1*,20"
|
||||
ColumnSpacing="10"
|
||||
HorizontalOptions="CenterAndExpand">
|
||||
|
||||
<!--Step icon-->
|
||||
<Image
|
||||
Grid.Column="1"
|
||||
HorizontalOptions="End">
|
||||
<Image.Triggers>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="1" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource LocationServiceSymbol}"
|
||||
FontFamily="FA-S"
|
||||
Size="40"
|
||||
Color="Black"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="3" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource Upload}"
|
||||
FontFamily="FA-S"
|
||||
Size="40"
|
||||
Color="Black"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
</Image.Triggers>
|
||||
</Image>
|
||||
|
||||
<!--Step text-->
|
||||
<Label
|
||||
Grid.Column="2"
|
||||
TextType="Html"
|
||||
Text="{Binding RentalProcess.StepInfoText}"
|
||||
FontSize="Large"
|
||||
HorizontalOptions="StartAndExpand"
|
||||
VerticalOptions="Center"
|
||||
TextColor="Black"
|
||||
Padding="0">
|
||||
</Label>
|
||||
|
||||
</Grid>
|
||||
|
||||
<!--Spinner & Info text-->
|
||||
<StackLayout Grid.Row="1"
|
||||
Margin="30,30,30,0"
|
||||
Spacing="30"
|
||||
IsVisible="True">
|
||||
|
||||
<!--Spinner-->
|
||||
<ActivityIndicator
|
||||
IsRunning="{Binding IsProcessWithRunningProcessView}"
|
||||
Scale="2"
|
||||
HorizontalOptions="Center"
|
||||
Color="{x:DynamicResource primary-back-title-color}"/>
|
||||
|
||||
<!--Info text-->
|
||||
<Label
|
||||
TextType="Html"
|
||||
Text="{Binding StatusInfoText}"
|
||||
FontSize="Medium"
|
||||
TextColor="DimGray"
|
||||
HorizontalOptions="CenterAndExpand"
|
||||
HorizontalTextAlignment="Center"/>
|
||||
|
||||
</StackLayout>
|
||||
|
||||
<!--Attention: Important info-->
|
||||
<Frame Grid.Row="2"
|
||||
Margin="0,20,0,60"
|
||||
Padding="10"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
HasShadow="False"
|
||||
IsVisible="{Binding RentalProcess.ImportantStepInfoText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
|
||||
BackgroundColor="{DynamicResource important-text-color}">
|
||||
|
||||
<Grid
|
||||
ColumnDefinitions="20,*,Auto,20"
|
||||
RowDefinitions="Auto">
|
||||
|
||||
<Label
|
||||
Grid.Column="1"
|
||||
HorizontalOptions="End"
|
||||
IsVisible="True"
|
||||
TextColor="White"
|
||||
FontSize="Large"
|
||||
|
||||
Text="{Binding RentalProcess.ImportantStepInfoText}"
|
||||
FontAttributes="Bold">
|
||||
</Label>
|
||||
|
||||
<Image
|
||||
Grid.Column="2"
|
||||
HorizontalOptions="Start">
|
||||
<Image.Source>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource Triangle}"
|
||||
FontFamily="FA-S"
|
||||
Size="40"
|
||||
Color="White"/>
|
||||
</Image.Source>
|
||||
</Image>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Frame>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Frame>
|
||||
|
||||
</ContentView.Content>
|
||||
|
||||
</ContentView>
|
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
#if !NOXCT
|
||||
namespace ShareeSharedGuiLib.View.Bike.RentalProcess
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class RentalProcessBookedClosedEndRental : ContentView
|
||||
{
|
||||
public RentalProcessBookedClosedEndRental()
|
||||
{
|
||||
InitializeComponent ();
|
||||
}
|
||||
}
|
||||
}
|
||||
# endif
|
|
@ -0,0 +1,209 @@
|
|||
<?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"
|
||||
xmlns:rental_process="clr-namespace:TINK.ViewModel.Bikes;assembly=TINKLib"
|
||||
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
||||
xmlns:sharedGui="clr-namespace:ShareeSharedGuiLib.View.Bike.RentalProcess"
|
||||
x:Class="ShareeSharedGuiLib.View.Bike.RentalProcess.RentalProcessBookedOpenCloseLock"
|
||||
IsVisible="False">
|
||||
|
||||
<ContentView.Triggers>
|
||||
<DataTrigger TargetType="ContentView"
|
||||
Binding="{Binding RentalProcess.State}"
|
||||
Value="{x:Static rental_process:CurrentRentalProcess.CloseLock}">
|
||||
<Setter Property="IsVisible" Value="True" />
|
||||
</DataTrigger>
|
||||
<DataTrigger TargetType="ContentView"
|
||||
Binding="{Binding RentalProcess.State}"
|
||||
Value="{x:Static rental_process:CurrentRentalProcess.EndRental}">
|
||||
<Setter Property="IsVisible" Value="False" />
|
||||
<Setter Property="HeightRequest" Value="0"/>
|
||||
</DataTrigger>
|
||||
</ContentView.Triggers>
|
||||
|
||||
<ContentView.Resources>
|
||||
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="StringNotNullOrEmpty_Converter"/>
|
||||
<x:String x:Key="Glasses"></x:String>
|
||||
<x:String x:Key="Bluetooth"></x:String>
|
||||
<x:String x:Key="Upload"></x:String>
|
||||
</ContentView.Resources>
|
||||
|
||||
<ContentView.Content>
|
||||
|
||||
<Frame
|
||||
Grid.Row="0"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
VerticalOptions="FillAndExpand"
|
||||
BackgroundColor="White"
|
||||
Padding="0"
|
||||
Margin="0">
|
||||
|
||||
<Grid RowDefinitions="60,Auto,Auto,1*"
|
||||
RowSpacing="0">
|
||||
|
||||
<!-- Title of rental process -->
|
||||
<Frame Grid.Row="0"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
VerticalOptions="FillAndExpand"
|
||||
BackgroundColor="{DynamicResource primary-back-title-color}"
|
||||
Padding="0"
|
||||
Margin="0">
|
||||
<Label
|
||||
Text="{x:Static resources:AppResources.ActionClose}"
|
||||
FontSize="Large"
|
||||
TextColor="White"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="Center"/>
|
||||
</Frame>
|
||||
|
||||
<!--Bike info-->
|
||||
<sharedGui:RentalProcessBikeInfo Grid.Row="1"/>
|
||||
|
||||
<!-- Progress bar -->
|
||||
<sharedGui:RentalProcess2StepsBar Grid.Row="2"/>
|
||||
|
||||
<!--CloseLock Content-->
|
||||
<Grid Grid.Row="3"
|
||||
RowSpacing="10"
|
||||
RowDefinitions="Auto,1*,Auto"
|
||||
Margin="0,40,0,20">
|
||||
<Grid.Triggers>
|
||||
<MultiTrigger TargetType="Grid">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepIndex}" Value="2" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="IsVisible" Value="False"/>
|
||||
<Setter Property="HeightRequest" Value="0"/>
|
||||
</MultiTrigger>
|
||||
</Grid.Triggers>
|
||||
|
||||
<!--Step-->
|
||||
<Grid Grid.Row="0"
|
||||
Padding="30,0,0,0"
|
||||
ColumnDefinitions="20,Auto,1*,20"
|
||||
ColumnSpacing="10"
|
||||
HorizontalOptions="CenterAndExpand">
|
||||
|
||||
<!--Step icon-->
|
||||
<Image
|
||||
Grid.Column="1"
|
||||
HorizontalOptions="End">
|
||||
<Image.Triggers>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepInfoText}" Value="{x:Static resources:AppResources.MarkingRentalProcessCloseLockStepCloseLock}"/>
|
||||
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource Bluetooth}"
|
||||
FontFamily="FA-B"
|
||||
Size="40"
|
||||
Color="Black"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
<MultiTrigger TargetType="Image">
|
||||
<MultiTrigger.Conditions>
|
||||
<BindingCondition Binding="{Binding RentalProcess.StepInfoText}" Value="{x:Static resources:AppResources.MarkingRentalProcessCloseLockStepUpload}"/>
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="Source">
|
||||
<Setter.Value>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource Upload}"
|
||||
FontFamily="FA-S"
|
||||
Size="40"
|
||||
Color="Black"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</MultiTrigger>
|
||||
</Image.Triggers>
|
||||
</Image>
|
||||
|
||||
<!--Step text-->
|
||||
<Label
|
||||
Grid.Column="2"
|
||||
TextType="Html"
|
||||
Text="{Binding RentalProcess.StepInfoText}"
|
||||
FontSize="Large"
|
||||
HorizontalOptions="Start"
|
||||
VerticalOptions="Center"
|
||||
TextColor="Black"
|
||||
Padding="0">
|
||||
</Label>
|
||||
|
||||
</Grid>
|
||||
|
||||
<!--Spinner-->
|
||||
<StackLayout Grid.Row="1"
|
||||
Margin="30,30,30,0"
|
||||
Spacing="30">
|
||||
|
||||
<!--Spinner-->
|
||||
<ActivityIndicator
|
||||
IsRunning="{Binding IsProcessWithRunningProcessView}"
|
||||
Scale="2"
|
||||
HorizontalOptions="Center"
|
||||
Color="{x:DynamicResource primary-back-title-color}"/>
|
||||
|
||||
<!--Info text-->
|
||||
<Label
|
||||
TextType="Html"
|
||||
Text="{Binding StatusInfoText}"
|
||||
FontSize="Medium"
|
||||
TextColor="DimGray"
|
||||
HorizontalOptions="CenterAndExpand"
|
||||
HorizontalTextAlignment="Center"/>
|
||||
|
||||
</StackLayout>
|
||||
|
||||
<!--Attention: Important info-->
|
||||
<Frame Grid.Row="2"
|
||||
Margin="0,20,0,60"
|
||||
Padding="10"
|
||||
HorizontalOptions="FillAndExpand"
|
||||
HasShadow="False"
|
||||
IsVisible="{Binding RentalProcess.ImportantStepInfoText, Converter={StaticResource StringNotNullOrEmpty_Converter}}"
|
||||
BackgroundColor="{DynamicResource important-text-color}">
|
||||
|
||||
<Grid
|
||||
ColumnDefinitions="20,*,Auto,20"
|
||||
RowDefinitions="Auto">
|
||||
|
||||
<Label
|
||||
Grid.Column="1"
|
||||
HorizontalOptions="End"
|
||||
IsVisible="True"
|
||||
TextColor="White"
|
||||
FontSize="Large"
|
||||
Text="{Binding RentalProcess.ImportantStepInfoText}"
|
||||
FontAttributes="Bold">
|
||||
</Label>
|
||||
|
||||
<Image
|
||||
Grid.Column="2"
|
||||
HorizontalOptions="Start">
|
||||
<Image.Source>
|
||||
<FontImageSource
|
||||
Glyph="{StaticResource Glasses}"
|
||||
FontFamily="FA-S"
|
||||
Size="40"
|
||||
Color="White"/>
|
||||
</Image.Source>
|
||||
</Image>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Frame>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Frame>
|
||||
|
||||
</ContentView.Content>
|
||||
|
||||
</ContentView>
|
|
@ -0,0 +1,23 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TINK.Model.Bikes.BikeInfoNS.BluetoothLock;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
namespace ShareeSharedGuiLib.View.Bike.RentalProcess
|
||||
{
|
||||
#if !NOXCT
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class RentalProcessBookedOpenCloseLock : ContentView
|
||||
{
|
||||
|
||||
public RentalProcessBookedOpenCloseLock()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
<?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"
|
||||
xmlns:rental_process="clr-namespace:TINK.ViewModel.Bikes;assembly=TINKLib"
|
||||
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
||||
x:Class="ShareeSharedGuiLib.View.Bike.RentalProcess.RentalProcessStepBarFinished">
|
||||
|
||||
<ContentView.Resources>
|
||||
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="StringNotNullOrEmpty_Converter"/>
|
||||
<x:String x:Key="check"></x:String>
|
||||
<x:String x:Key="xmark"></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.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="Large"
|
||||
Color="White"/>
|
||||
</Image.Source>
|
||||
</Image>
|
||||
</Frame>
|
||||
|
||||
</Grid>
|
||||
|
||||
</ContentView.Content>
|
||||
|
||||
</ContentView>
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
||||
namespace ShareeSharedGuiLib.View.Bike.RentalProcess
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class RentalProcessStepBarFinished : ContentView
|
||||
{
|
||||
public RentalProcessStepBarFinished ()
|
||||
{
|
||||
InitializeComponent ();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -19,7 +19,7 @@
|
|||
</DataTrigger>
|
||||
</StackLayout.Triggers>
|
||||
|
||||
<Label Text="{x:Static resources:AppResources.MarkingNoNetworkConnection}"
|
||||
<Label Text="{x:Static resources:AppResources.MarkingNoWeb}"
|
||||
TextColor="White"
|
||||
FontSize="Small"
|
||||
Padding="5"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue