sharee.bike-App/LastenradBayern/TINK/View/FeedbackPopup.xaml

114 lines
5.1 KiB
Plaintext
Raw Normal View History

2021-11-07 19:42:59 +01:00
<?xml version="1.0" encoding="utf-8" ?>
<xct:Popup xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:xct="http://xamarin.com/schemas/2020/toolkit"
xmlns:local="clr-namespace:TINK.View"
x:TypeArguments="local:FeedbackPopup+Result"
2022-08-30 15:42:25 +02:00
xmlns:sharedGui="clr-namespace:ShareeSharedGuiLib.View"
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
x:Class="TINK.View.FeedbackPopup">
2021-11-07 19:42:59 +01:00
<xct:Popup.Resources>
<x:String x:Key="check_circle">&#xf058;</x:String>
</xct:Popup.Resources>
<Grid>
<Grid.RowDefinitions>
<!-- Head and title row -->
<RowDefinition Height="auto"/>
2022-01-04 18:54:03 +01:00
<!--- Co2saving-->
<RowDefinition Height="auto"/>
2021-11-07 19:42:59 +01:00
<!--- checkbox and input elements-->
<RowDefinition Height="*"/>
<!--- ok button-->
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
2022-08-30 15:42:25 +02:00
<!-- Head and title - Grid.Row 0 -->
<Grid Grid.Row="0"
2021-11-07 19:42:59 +01:00
Padding="30"
BackgroundColor="{DynamicResource primary-back-title-color}">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
2022-08-30 15:42:25 +02:00
<Label Grid.Row="0"
2021-11-07 19:42:59 +01:00
HorizontalTextAlignment="Center"
FontSize="Large"
2022-08-30 15:42:25 +02:00
TextColor="White"
Text="{x:Static resources:AppResources.MarkingReturnBikeMainMessage}"/>
2021-11-07 19:42:59 +01:00
<Image Grid.Row="1">
<Image.Source>
2022-08-30 15:42:25 +02:00
<FontImageSource Size="Title" Glyph="{StaticResource check_circle}" FontFamily="FA-S"/>
2021-11-07 19:42:59 +01:00
</Image.Source>
</Image>
</Grid>
2022-08-30 15:42:25 +02:00
<!-- Co2saving - Grid.Row 1 -->
2022-01-04 18:54:03 +01:00
<Frame
x:Name="Co2SavingFrame"
Grid.Row="1">
<Label
x:Name="Co2SavingLabel"
Text=""/>
</Frame>
2022-08-30 15:42:25 +02:00
<!-- Checkbox and input elements - Grid.Row 2-->
2022-01-04 18:54:03 +01:00
<ScrollView Grid.Row="2">
2021-11-07 19:42:59 +01:00
<Grid>
<Grid.RowDefinitions>
2022-08-30 15:42:25 +02:00
<!--- Battery charge level -->
2021-11-07 19:42:59 +01:00
<RowDefinition Height="Auto"/>
2022-08-30 15:42:25 +02:00
<!--- Bike is ok GUI -->
<RowDefinition Height="Auto"/>
<!--- Feedback edit GUI -->
2021-11-07 19:42:59 +01:00
<RowDefinition Height="*" />
</Grid.RowDefinitions>
2022-08-30 15:42:25 +02:00
<!-- Battery level -->
<sharedGui:BarLevelInputView Grid.Row="0"
x:Name="BarLevelInputView"
HorizontalOptions="Center"
IsVisible="False"/>
<Grid Grid.Row="1">
2021-11-07 19:42:59 +01:00
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
2022-08-30 15:42:25 +02:00
<!-- Checkbox Is Broken -->
<CheckBox x:Name="brockenCheckBox" IsChecked="True" Grid.Column="0"/>
2021-11-07 19:42:59 +01:00
<Label
Grid.Column="1"
FontSize="Medium"
2022-08-30 15:42:25 +02:00
Text= "{x:Static resources:AppResources.MarkingReturnBikeBikeStateIsOK}"/>
2021-11-07 19:42:59 +01:00
</Grid>
<Editor
2022-08-30 15:42:25 +02:00
Grid.Row="2"
2021-11-07 19:42:59 +01:00
x:Name="feedbackMessage"
AutoSize="TextChanges"
2022-08-30 15:42:25 +02:00
Placeholder="{x:Static resources:AppResources.MarkingReturnBikeFeedbackInputPlaceholder}"
2021-11-07 19:42:59 +01:00
Text="">
<Editor.Triggers>
<DataTrigger TargetType="Editor"
Binding="{Binding Source={x:Reference brockenCheckBox}, Path=IsChecked}"
Value="true">
<Setter Property="Placeholder"
2022-08-30 15:42:25 +02:00
Value="{x:Static resources:AppResources.MarkingReturnBikeFeedbackInputPlaceholder}" />
2021-11-07 19:42:59 +01:00
</DataTrigger>
<DataTrigger TargetType="Editor"
Binding="{Binding Source={x:Reference brockenCheckBox}, Path=IsChecked}"
Value="false">
<Setter Property="Placeholder"
2022-08-30 15:42:25 +02:00
Value="{x:Static resources:AppResources.MarkingReturnBikeErrorDescriptionInputPlaceholder}" />
2021-11-07 19:42:59 +01:00
</DataTrigger>
</Editor.Triggers>
</Editor>
</Grid>
</ScrollView>
2022-08-30 15:42:25 +02:00
<!-- Buttons - Grid.Row 3 -->
2021-11-07 19:42:59 +01:00
<Button
2022-01-04 18:54:03 +01:00
Grid.Row="3"
2022-08-30 15:42:25 +02:00
WidthRequest="100"
2021-11-07 19:42:59 +01:00
Clicked="OnOkClicked"
2022-08-30 15:42:25 +02:00
Text="OK"
Margin="0,0,0,3"/>
2021-11-07 19:42:59 +01:00
</Grid>
</xct:Popup>