2022-09-20 13:51:55 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2021-11-07 19:42:59 +01:00
|
|
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
2022-09-20 13:51:55 +02:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
x:Class="TINK.View.BikesAtStation.BikesAtStationPage"
|
|
|
|
xmlns:local_bike="clr-namespace:TINK.View.Bike"
|
|
|
|
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
2022-09-22 20:58:30 +02:00
|
|
|
xmlns:sharedGui="clr-namespace:ShareeSharedGuiLib.View"
|
|
|
|
Shell.FlyoutBehavior="Disabled"
|
|
|
|
Shell.NavBarIsVisible="{Binding IsIdle}">
|
2022-12-07 16:54:52 +01:00
|
|
|
|
2022-09-20 13:51:55 +02:00
|
|
|
<Shell.TitleView>
|
|
|
|
<Grid ColumnDefinitions="Auto, 1*">
|
|
|
|
<Image Style="{StaticResource Image-Navbar}"/>
|
|
|
|
<Label Style="{StaticResource Label-Navbar}"
|
|
|
|
Text="{Binding Title}"/>
|
|
|
|
</Grid>
|
|
|
|
</Shell.TitleView>
|
2022-12-07 16:54:52 +01:00
|
|
|
|
2022-09-20 13:51:55 +02:00
|
|
|
<ContentPage.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<local_bike:BikeViewCellTemplateSelector x:Key="bikeTemplateSelector"/>
|
|
|
|
</ResourceDictionary>
|
|
|
|
</ContentPage.Resources>
|
|
|
|
|
|
|
|
<ContentPage.Content>
|
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
<!--Grid for Bike(s) view and Running process in same row-->
|
|
|
|
<Grid>
|
2022-09-20 13:51:55 +02:00
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
<Frame
|
|
|
|
Grid.Row="0">
|
2022-09-20 13:51:55 +02:00
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
<!-- Grid for Content -->
|
|
|
|
<Grid
|
|
|
|
RowDefinitions="Auto,1*,Auto,Auto">
|
2022-09-20 13:51:55 +02:00
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
<!--Station-->
|
|
|
|
<StackLayout
|
|
|
|
Grid.Row="0"
|
|
|
|
Orientation="Vertical">
|
|
|
|
|
|
|
|
<!--Title-->
|
|
|
|
<Label
|
|
|
|
HorizontalOptions="Center"
|
|
|
|
FontAttributes="Bold"
|
|
|
|
TextColor="{DynamicResource primary-back-title-color}"
|
|
|
|
Text="{Binding StationDetailText}"/>
|
|
|
|
|
|
|
|
<!--Line-->
|
|
|
|
<BoxView
|
|
|
|
HeightRequest="1"
|
|
|
|
Color="{DynamicResource primary-back-title-color}"/>
|
|
|
|
|
|
|
|
</StackLayout>
|
|
|
|
|
|
|
|
<!--Bike(s)-->
|
|
|
|
<ListView Grid.Row="1"
|
2022-09-20 13:51:55 +02:00
|
|
|
x:Name="BikesAtStationListView"
|
|
|
|
SelectionMode="None"
|
|
|
|
SelectedItem="{Binding SelectedBike}"
|
|
|
|
IsEnabled="{Binding IsIdle}"
|
|
|
|
IsVisible="{Binding IsBikesListVisible}"
|
|
|
|
HasUnevenRows="True"
|
2023-01-18 14:22:51 +01:00
|
|
|
ItemTemplate="{StaticResource bikeTemplateSelector}"
|
|
|
|
IsPullToRefreshEnabled="True"
|
|
|
|
RefreshCommand="{Binding RefreshCommand}"
|
|
|
|
IsRefreshing="{Binding IsRefreshing}"/>
|
2022-09-20 13:51:55 +02:00
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
<!--No Bikes-->
|
|
|
|
<Label Grid.Row="1"
|
2022-09-20 13:51:55 +02:00
|
|
|
IsVisible="{Binding IsNoBikesAtStationVisible}"
|
|
|
|
Text="{Binding NoBikesAtStationText}"/>
|
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
<!--Info text-->
|
|
|
|
<Label
|
|
|
|
Grid.Row="2"
|
|
|
|
Text="{Binding StatusInfoText}"
|
2023-01-18 14:22:51 +01:00
|
|
|
IsVisible="{Binding Path=IsProcessWithRunningProcessView, Converter={StaticResource InvertedBoolConverter}}"
|
2022-12-07 16:54:52 +01:00
|
|
|
FontSize="Small"
|
|
|
|
HorizontalOptions="CenterAndExpand"
|
|
|
|
VerticalOptions="CenterAndExpand"/>
|
|
|
|
|
|
|
|
<!-- Contact and Login at end of page-->
|
|
|
|
<StackLayout
|
|
|
|
Grid.Row="3"
|
|
|
|
Orientation="Vertical">
|
|
|
|
|
|
|
|
<!--Line-->
|
|
|
|
<BoxView
|
|
|
|
HeightRequest="1"
|
|
|
|
Color="{DynamicResource primary-back-title-color}"/>
|
|
|
|
|
|
|
|
<!--Contact to operator-->
|
|
|
|
<Label
|
2022-09-20 13:51:55 +02:00
|
|
|
TextType="Html"
|
|
|
|
Text="{Binding ContactSupportHintText}">
|
2022-12-07 16:54:52 +01:00
|
|
|
<Label.GestureRecognizers>
|
|
|
|
<TapGestureRecognizer Command="{Binding ContactSupportClickedCommand}"/>
|
|
|
|
</Label.GestureRecognizers>
|
|
|
|
</Label>
|
2022-09-20 13:51:55 +02:00
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
<!--Login required-->
|
|
|
|
<Label
|
2022-09-20 13:51:55 +02:00
|
|
|
IsVisible="{Binding IsLoginRequiredHintVisible}"
|
|
|
|
TextType="Html"
|
|
|
|
Text="{Binding LoginRequiredHintText}">
|
2022-12-07 16:54:52 +01:00
|
|
|
<Label.GestureRecognizers>
|
|
|
|
<TapGestureRecognizer Command="{Binding LoginRequiredHintClickedCommand}"/>
|
|
|
|
</Label.GestureRecognizers>
|
|
|
|
</Label>
|
2022-09-20 13:51:55 +02:00
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
</StackLayout>
|
2022-09-20 13:51:55 +02:00
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</Frame>
|
|
|
|
|
|
|
|
<!--While process is running-->
|
|
|
|
<sharedGui:RunningProcessView
|
2023-01-18 14:22:51 +01:00
|
|
|
IsVisible="{Binding IsProcessWithRunningProcessView}"
|
2022-12-07 16:54:52 +01:00
|
|
|
Grid.Row="0"/>
|
|
|
|
|
|
|
|
</Grid>
|
2022-09-20 13:51:55 +02:00
|
|
|
|
|
|
|
</ContentPage.Content>
|
2022-12-07 16:54:52 +01:00
|
|
|
|
2022-09-20 13:51:55 +02:00
|
|
|
</ContentPage>
|