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

83 lines
3.6 KiB
Text
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>
2022-09-06 16:08:19 +02:00
<StackLayout>
<!-- Head and title -->
<StackLayout
2021-11-07 19:42:59 +01:00
Padding="30"
BackgroundColor="{DynamicResource primary-back-title-color}">
2022-09-06 16:08:19 +02:00
<Label
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}"/>
2022-09-06 16:08:19 +02:00
<Image>
2021-11-07 19:42:59 +01:00
<Image.Source>
2022-09-06 16:08:19 +02:00
<FontImageSource Size="60" Glyph="{StaticResource check_circle}" FontFamily="FA-S" Color="White"/>
2021-11-07 19:42:59 +01:00
</Image.Source>
</Image>
2022-09-06 16:08:19 +02:00
</StackLayout>
<!-- Co2saving -->
2022-01-04 18:54:03 +01:00
<Frame
2022-09-06 16:08:19 +02:00
x:Name="Co2SavingFrame">
2022-01-04 18:54:03 +01:00
<Label
x:Name="Co2SavingLabel"
Text=""/>
</Frame>
2022-09-06 16:08:19 +02:00
<!-- Checkbox and input elements -->
<ScrollView>
<StackLayout>
2022-08-30 15:42:25 +02:00
<!-- Battery level -->
2022-09-06 16:08:19 +02:00
<sharedGui:BarLevelInputView
2022-08-30 15:42:25 +02:00
x:Name="BarLevelInputView"
HorizontalOptions="Center"/>
2022-09-06 16:08:19 +02:00
<!-- Checkbox Is Broken -->
<StackLayout Orientation="Horizontal">
<CheckBox x:Name="brockenCheckBox" IsChecked="True" HeightRequest="20"/>
<Label
2021-11-07 19:42:59 +01:00
FontSize="Medium"
2022-08-30 15:42:25 +02:00
Text= "{x:Static resources:AppResources.MarkingReturnBikeBikeStateIsOK}"/>
2022-09-06 16:08:19 +02:00
</StackLayout>
<Editor
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="">
2022-09-06 16:08:19 +02:00
<Editor.Triggers>
<DataTrigger TargetType="Editor"
2021-11-07 19:42:59 +01:00
Binding="{Binding Source={x:Reference brockenCheckBox}, Path=IsChecked}"
Value="true">
2022-09-06 16:08:19 +02:00
<Setter Property="Placeholder"
2022-08-30 15:42:25 +02:00
Value="{x:Static resources:AppResources.MarkingReturnBikeFeedbackInputPlaceholder}" />
2022-09-06 16:08:19 +02:00
</DataTrigger>
<DataTrigger TargetType="Editor"
2021-11-07 19:42:59 +01:00
Binding="{Binding Source={x:Reference brockenCheckBox}, Path=IsChecked}"
Value="false">
2022-09-06 16:08:19 +02:00
<Setter Property="Placeholder"
2022-08-30 15:42:25 +02:00
Value="{x:Static resources:AppResources.MarkingReturnBikeErrorDescriptionInputPlaceholder}" />
2022-09-06 16:08:19 +02:00
</DataTrigger>
</Editor.Triggers>
</Editor>
</StackLayout>
2021-11-07 19:42:59 +01:00
</ScrollView>
2022-09-06 16:08:19 +02:00
<!-- Buttons -->
2021-11-07 19:42:59 +01:00
<Button
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"/>
2022-09-06 16:08:19 +02:00
</StackLayout>
2021-11-07 19:42:59 +01:00
</xct:Popup>