2022-09-20 13:51:55 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2022-12-07 16:54:52 +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.MyBikes.MyBikesPage"
|
|
|
|
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
|
|
|
xmlns:sharedGui="clr-namespace:ShareeSharedGuiLib.View"
|
2022-09-22 20:58:30 +02:00
|
|
|
xmlns:local_bike="clr-namespace:TINK.View.Bike"
|
|
|
|
Shell.FlyoutBehavior="{Binding FlyoutBehavior}">
|
2022-09-20 13:51:55 +02:00
|
|
|
|
|
|
|
<Shell.TitleView>
|
|
|
|
<Grid ColumnDefinitions="Auto, 1*">
|
2022-12-07 16:54:52 +01:00
|
|
|
<Image Style="{StaticResource Image-Navbar}"/>
|
2022-09-20 13:51:55 +02:00
|
|
|
<Label Style="{StaticResource Label-Navbar}"
|
|
|
|
Text="{x:Static resources:AppResources.MarkingMyBikes}"/>
|
|
|
|
</Grid>
|
|
|
|
</Shell.TitleView>
|
|
|
|
|
|
|
|
<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
|
|
|
|
|
|
|
<!--Bike(s) view-->
|
2022-12-07 16:54:52 +01:00
|
|
|
<Grid
|
|
|
|
RowDefinitions="1*,32">
|
2022-09-20 13:51:55 +02:00
|
|
|
|
|
|
|
<!--Bike(s)-->
|
|
|
|
<ListView
|
2022-12-07 16:54:52 +01:00
|
|
|
Grid.Row="0"
|
2022-09-20 13:51:55 +02:00
|
|
|
x:Name="MyBikesListView"
|
|
|
|
SelectionMode="None"
|
|
|
|
SelectedItem="{Binding SelectedBike}"
|
|
|
|
IsEnabled="{Binding IsIdle}"
|
|
|
|
IsVisible="{Binding IsBikesListVisible}"
|
|
|
|
HasUnevenRows="True"
|
|
|
|
ItemTemplate="{StaticResource bikeTemplateSelector}"/>
|
|
|
|
|
|
|
|
<!--No Bikes-->
|
|
|
|
<Label
|
2022-12-07 16:54:52 +01:00
|
|
|
Grid.Row="0"
|
2022-09-20 13:51:55 +02:00
|
|
|
IsVisible="{Binding IsNoBikesOccupiedVisible}"
|
|
|
|
Text="{Binding NoBikesOccupiedText}"/>
|
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
<!--Info text-->
|
|
|
|
<Label
|
|
|
|
Grid.Row="1"
|
|
|
|
Text="{Binding StatusInfoText}"
|
|
|
|
IsVisible="{Binding Path=IsRunning, Converter={StaticResource InvertedBoolConverter}}"
|
|
|
|
FontSize="Small"
|
|
|
|
HorizontalOptions="CenterAndExpand"
|
|
|
|
VerticalOptions="CenterAndExpand"/>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
</Frame>
|
2022-09-20 13:51:55 +02:00
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
<!--While process is running-->
|
|
|
|
<sharedGui:RunningProcessView
|
2022-09-20 13:51:55 +02:00
|
|
|
Grid.Row="0"
|
|
|
|
IsVisible="{Binding IsRunning}"/>
|
|
|
|
|
2022-12-07 16:54:52 +01:00
|
|
|
</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>
|