sharee.bike-App/Meinkonrad/TINK/View/FindBike/FindBikePage.xaml

99 lines
2.6 KiB
Text
Raw Normal View History

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.FindBike.FindBikePage"
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
xmlns:local_bike="clr-namespace:TINK.View.Bike"
xmlns:sharedGui="clr-namespace:ShareeSharedGuiLib.View">
<Shell.TitleView>
<Grid ColumnDefinitions="Auto, 1*">
<Label Style="{StaticResource Label-Navbar}"
Text="{x:Static resources:AppResources.MarkingFindBike}"/>
</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>
2023-02-22 14:03:35 +01:00
<StackLayout Grid.Row="0">
2022-12-07 16:54:52 +01:00
2023-02-22 14:03:35 +01:00
<!--No Network Connection-->
<sharedGui:NotConnectedToNetView/>
2022-12-07 16:54:52 +01:00
2023-02-22 14:03:35 +01:00
<Frame>
<Grid
2022-12-07 16:54:52 +01:00
RowDefinitions="1*,32">
2023-02-22 14:03:35 +01:00
<!--Search bike-->
<StackLayout>
<Entry
2022-12-07 16:54:52 +01:00
Placeholder="{x:Static resources:AppResources.PlaceholderFindBike}"
IsVisible="{Binding IsSelectBikeVisible}"
MaxLength="10"
CursorPosition="0"
Text="{Binding BikeIdUserInput}"/>
2023-02-22 14:03:35 +01:00
<Button
2022-12-07 16:54:52 +01:00
Text="{x:Static resources:AppResources.MarkingFindBike}"
IsEnabled="{Binding IsSelectBikeEnabled}"
IsVisible="{Binding IsSelectBikeVisible}"
Command="{Binding OnSelectBikeRequest}"/>
2023-02-22 14:03:35 +01:00
<StackLayout
Spacing="0"
IsVisible="{Binding IsBikesListVisible}"
Orientation="Vertical">
<!--Hint for Outdated Data.-->
<sharedGui:HintForRefreshingPageView/>
<ListView
2022-12-07 16:54:52 +01:00
x:Name="FindBikeListView"
SelectionMode="None"
SelectedItem="{Binding SelectedBike}"
IsEnabled="{Binding IsIdle}"
HasUnevenRows="True"
2023-01-18 14:22:51 +01:00
ItemTemplate="{StaticResource bikeTemplateSelector}"
IsPullToRefreshEnabled="True"
RefreshCommand="{Binding RefreshCommand}"
IsRefreshing="{Binding IsRefreshing}"/>
2022-12-07 16:54:52 +01:00
2023-02-22 14:03:35 +01:00
</StackLayout>
</StackLayout>
2022-12-07 16:54:52 +01:00
2023-02-22 14:03:35 +01:00
<!--Info text-->
<Label
2022-12-07 16:54:52 +01:00
Grid.Row="1"
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"/>
2023-02-22 14:03:35 +01:00
</Grid>
2022-12-07 16:54:52 +01:00
2023-02-22 14:03:35 +01:00
</Frame>
</StackLayout>
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"
2023-01-18 14:22:51 +01:00
IsVisible="{Binding IsProcessWithRunningProcessView}"/>
2022-09-20 13:51:55 +02:00
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>