mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
84 lines
No EOL
4 KiB
XML
84 lines
No EOL
4 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
|
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"
|
|
Title="{Binding Title}">
|
|
<ContentPage.Resources>
|
|
<ResourceDictionary>
|
|
<local_bike:BikeViewCellTemplateSelector x:Key="bikeTemplateSelector"/>
|
|
</ResourceDictionary>
|
|
</ContentPage.Resources>
|
|
<ContentPage.Content>
|
|
<Frame>
|
|
<StackLayout
|
|
Orientation="Vertical">
|
|
<!-- Title bar stack layout-->
|
|
<StackLayout
|
|
Orientation="Vertical">
|
|
<Label
|
|
HorizontalOptions="Center"
|
|
FontAttributes="Bold"
|
|
Text="{Binding StationDetailText}"/>
|
|
</StackLayout>
|
|
<!-- Center stack layout -->
|
|
<StackLayout
|
|
Orientation="Vertical"
|
|
VerticalOptions="CenterAndExpand">
|
|
<ListView
|
|
x:Name="BikesAtStationListView"
|
|
SelectionMode="None"
|
|
SelectedItem="{Binding SelectedBike}"
|
|
IsEnabled="{Binding IsIdle}"
|
|
IsVisible="{Binding IsBikesListVisible}"
|
|
HasUnevenRows="True"
|
|
ItemTemplate="{StaticResource bikeTemplateSelector}"/>
|
|
<Label
|
|
IsVisible="{Binding IsNoBikesAtStationVisible}"
|
|
Text="{Binding NoBikesAtStationText}"/>
|
|
</StackLayout>
|
|
<!-- Status bar stack layout-->
|
|
<StackLayout
|
|
Orientation="Vertical">
|
|
<Label
|
|
TextType="Html"
|
|
Text="{Binding ContactSupportHintText}">
|
|
<Label.GestureRecognizers>
|
|
<TapGestureRecognizer Command="{Binding ContactSupportClickedCommand}"/>
|
|
</Label.GestureRecognizers>
|
|
</Label>
|
|
<Label
|
|
IsVisible="{Binding IsLoginRequiredHintVisible}"
|
|
TextType="Html"
|
|
Text="{Binding LoginRequiredHintText}">
|
|
<Label.GestureRecognizers>
|
|
<TapGestureRecognizer Command="{Binding LoginRequiredHintClickedCommand}"/>
|
|
</Label.GestureRecognizers>
|
|
</Label>
|
|
<StackLayout
|
|
Orientation="Horizontal">
|
|
<Label
|
|
HeightRequest="20"
|
|
Text="{Binding StatusInfoText}"
|
|
VerticalOptions="Center"
|
|
HorizontalOptions="FillAndExpand"/>
|
|
<ActivityIndicator IsRunning="{Binding IsRunning}"
|
|
IsVisible="{Binding IsRunning}"
|
|
HeightRequest="20"
|
|
VerticalOptions="CenterAndExpand"
|
|
HorizontalOptions="End">
|
|
<ActivityIndicator.WidthRequest>
|
|
<OnPlatform x:TypeArguments="x:Double" iOS="40" Android="40" WinPhone="40" />
|
|
</ActivityIndicator.WidthRequest>
|
|
<ActivityIndicator.Color>
|
|
<OnPlatform x:TypeArguments="Color"
|
|
iOS="#2499CE" WinPhone="#2499CE" />
|
|
</ActivityIndicator.Color>
|
|
</ActivityIndicator>
|
|
</StackLayout>
|
|
</StackLayout>
|
|
</StackLayout>
|
|
</Frame>
|
|
</ContentPage.Content>
|
|
</ContentPage> |