mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 02:26:29 +01:00
98 lines
No EOL
4.1 KiB
XML
98 lines
No EOL
4.1 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"
|
|
x:Class="TINK.View.FeedbackPopup">
|
|
<xct:Popup.Resources>
|
|
<x:String x:Key="check_circle"></x:String>
|
|
</xct:Popup.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<!-- Head and title row -->
|
|
<RowDefinition Height="auto"/>
|
|
<!--- Co2saving-->
|
|
<RowDefinition Height="auto"/>
|
|
<!--- checkbox and input elements-->
|
|
<RowDefinition Height="*"/>
|
|
<!--- ok button-->
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
<!-- Head and title -->
|
|
<Grid
|
|
Padding="30"
|
|
BackgroundColor="{DynamicResource primary-back-title-color}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
HorizontalTextAlignment="Center"
|
|
FontSize="Large"
|
|
Text="Fahrrad erfolgreich zurückgegeben!"/>
|
|
<Image Grid.Row="1">
|
|
<Image.Source>
|
|
<FontImageSource Size="Header" Glyph="{StaticResource check_circle}" FontFamily="FA-S"/>
|
|
</Image.Source>
|
|
</Image>
|
|
</Grid>
|
|
<!-- Co2saving -->
|
|
<Frame
|
|
x:Name="Co2SavingFrame"
|
|
Grid.Row="1">
|
|
<Label
|
|
x:Name="Co2SavingLabel"
|
|
Text=""/>
|
|
</Frame>
|
|
<!-- Checkbox and input elements -->
|
|
<ScrollView Grid.Row="2">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<StackLayout
|
|
Orientation="Vertical">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<CheckBox x:Name="brockenCheckBox" IsChecked="True"/>
|
|
<Label
|
|
Grid.Column="1"
|
|
FontSize="Medium"
|
|
Text="Rad ist in Ordnung"/>
|
|
</Grid>
|
|
<Editor
|
|
Grid.Row="1"
|
|
x:Name="feedbackMessage"
|
|
AutoSize="TextChanges"
|
|
Placeholder="Bei Bedarf bitte hier Rückmeldung eingeben."
|
|
Text="">
|
|
<Editor.Triggers>
|
|
<DataTrigger TargetType="Editor"
|
|
Binding="{Binding Source={x:Reference brockenCheckBox}, Path=IsChecked}"
|
|
Value="true">
|
|
<Setter Property="Placeholder"
|
|
Value="Bei Bedarf bitte hier Rückmeldung eingeben." />
|
|
</DataTrigger>
|
|
<DataTrigger TargetType="Editor"
|
|
Binding="{Binding Source={x:Reference brockenCheckBox}, Path=IsChecked}"
|
|
Value="false">
|
|
<Setter Property="Placeholder"
|
|
Value="Bitte Zustand/ Defekt hier beschreiben." />
|
|
</DataTrigger>
|
|
</Editor.Triggers>
|
|
</Editor>
|
|
</StackLayout>
|
|
</Grid>
|
|
</ScrollView>
|
|
<!-- Buttons -->
|
|
<Button
|
|
Grid.Row="3"
|
|
Clicked="OnOkClicked"
|
|
Text="OK"/>
|
|
</Grid>
|
|
</xct:Popup> |