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

84 lines
3.7 KiB
Text
Raw Normal View History

2021-05-13 20:16:41 +02: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-05-13 20:16:41 +02: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-05-13 20:16:41 +02:00
Padding="30"
BackgroundColor="{DynamicResource primary-back-title-color}">
<Label
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-05-13 20:16:41 +02:00
<Image.Source>
2022-09-06 16:08:19 +02:00
<FontImageSource Size="60" Glyph="{StaticResource check_circle}" FontFamily="FA-S" Color="White"/>
2021-05-13 20:16:41 +02:00
</Image.Source>
</Image>
2022-09-06 16:08:19 +02:00
</StackLayout>
2022-08-30 15:42:25 +02:00
2022-09-06 16:08:19 +02:00
<!-- Co2saving -->
2022-08-30 15:42:25 +02:00
<Frame
2022-09-06 16:08:19 +02:00
x:Name="Co2SavingFrame">
2021-12-08 17:57:30 +01:00
<Label
x:Name="Co2SavingLabel"
Text=""/>
</Frame>
2022-08-30 15:42:25 +02:00
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-05-13 20:16:41 +02: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-05-13 20:16:41 +02:00
x:Name="feedbackMessage"
AutoSize="TextChanges"
2022-08-30 15:42:25 +02:00
Placeholder="{x:Static resources:AppResources.MarkingReturnBikeFeedbackInputPlaceholder}"
2021-05-13 20:16:41 +02: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-05-13 20:16:41 +02: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-05-13 20:16:41 +02:00
</DataTrigger>
</Editor.Triggers>
</Editor>
2022-09-06 16:08:19 +02:00
</StackLayout>
2021-05-13 20:16:41 +02:00
</ScrollView>
2022-08-30 15:42:25 +02:00
2022-09-06 16:08:19 +02:00
<!-- Buttons -->
2021-05-13 20:16:41 +02:00
<Button
2022-08-30 15:42:25 +02:00
WidthRequest="100"
2021-05-13 20:16:41 +02: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-05-13 20:16:41 +02:00
</xct:Popup>