mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
83 lines
No EOL
3.6 KiB
XML
83 lines
No EOL
3.6 KiB
XML
<?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"
|
|
xmlns:sharedGui="clr-namespace:ShareeSharedGuiLib.View"
|
|
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
|
x:Class="TINK.View.FeedbackPopup">
|
|
<xct:Popup.Resources>
|
|
<x:String x:Key="check_circle"></x:String>
|
|
</xct:Popup.Resources>
|
|
<StackLayout>
|
|
|
|
<!-- Head and title -->
|
|
<StackLayout
|
|
Padding="30"
|
|
BackgroundColor="{DynamicResource primary-back-title-color}">
|
|
<Label
|
|
HorizontalTextAlignment="Center"
|
|
FontSize="Large"
|
|
TextColor="White"
|
|
Text="{x:Static resources:AppResources.MarkingReturnBikeMainMessage}"/>
|
|
<Image>
|
|
<Image.Source>
|
|
<FontImageSource Size="60" Glyph="{StaticResource check_circle}" FontFamily="FA-S" Color="White"/>
|
|
</Image.Source>
|
|
</Image>
|
|
</StackLayout>
|
|
|
|
<!-- Co2saving -->
|
|
<Frame
|
|
x:Name="Co2SavingFrame">
|
|
<Label
|
|
x:Name="Co2SavingLabel"
|
|
Text=""/>
|
|
</Frame>
|
|
|
|
<!-- Checkbox and input elements -->
|
|
<ScrollView>
|
|
<StackLayout>
|
|
<!-- Battery level -->
|
|
<sharedGui:BarLevelInputView
|
|
x:Name="BarLevelInputView"
|
|
HorizontalOptions="Center"/>
|
|
<!-- Checkbox Is Broken -->
|
|
<StackLayout Orientation="Horizontal">
|
|
<CheckBox x:Name="brockenCheckBox" IsChecked="True" HeightRequest="20"/>
|
|
<Label
|
|
FontSize="Medium"
|
|
Text= "{x:Static resources:AppResources.MarkingReturnBikeBikeStateIsOK}"/>
|
|
</StackLayout>
|
|
<Editor
|
|
x:Name="feedbackMessage"
|
|
AutoSize="TextChanges"
|
|
Placeholder="{x:Static resources:AppResources.MarkingReturnBikeFeedbackInputPlaceholder}"
|
|
Text="">
|
|
<Editor.Triggers>
|
|
<DataTrigger TargetType="Editor"
|
|
Binding="{Binding Source={x:Reference brockenCheckBox}, Path=IsChecked}"
|
|
Value="true">
|
|
<Setter Property="Placeholder"
|
|
Value="{x:Static resources:AppResources.MarkingReturnBikeFeedbackInputPlaceholder}" />
|
|
</DataTrigger>
|
|
<DataTrigger TargetType="Editor"
|
|
Binding="{Binding Source={x:Reference brockenCheckBox}, Path=IsChecked}"
|
|
Value="false">
|
|
<Setter Property="Placeholder"
|
|
Value="{x:Static resources:AppResources.MarkingReturnBikeErrorDescriptionInputPlaceholder}" />
|
|
</DataTrigger>
|
|
</Editor.Triggers>
|
|
</Editor>
|
|
</StackLayout>
|
|
</ScrollView>
|
|
|
|
<!-- Buttons -->
|
|
<Button
|
|
WidthRequest="100"
|
|
Clicked="OnOkClicked"
|
|
Text="OK"
|
|
Margin="0,0,0,3"/>
|
|
</StackLayout>
|
|
</xct:Popup> |