2023-05-11 17:39:28 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2021-05-13 20:16:41 +02:00
|
|
|
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
2022-05-02 21:56:32 +02:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-04-09 12:53:23 +02:00
|
|
|
xmlns:resources="clr-namespace:ShareeBike.MultilingualResources;assembly=SharedBusinessLogic"
|
|
|
|
xmlns:sharedGui="clr-namespace:SharedGui.View"
|
|
|
|
xmlns:conv="clr-namespace:ShareeBike.View;assembly=SharedBusinessLogic"
|
2022-05-02 21:56:32 +02:00
|
|
|
mc:Ignorable="d"
|
2024-04-09 12:53:23 +02:00
|
|
|
x:Class="ShareeBike.View.Account.AccountPage"
|
2023-05-11 17:39:28 +02:00
|
|
|
BackgroundColor="{DynamicResource background-color}">
|
2024-04-09 12:53:23 +02:00
|
|
|
|
|
|
|
<Shell.TitleView>
|
|
|
|
<Grid ColumnDefinitions="Auto, 1*">
|
|
|
|
<Label Style="{StaticResource Label-Navbar}"
|
2022-08-30 15:42:25 +02:00
|
|
|
Text="{x:Static resources:AppResources.MarkingAccount}"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
</Grid>
|
|
|
|
</Shell.TitleView>
|
2023-07-19 10:10:36 +02:00
|
|
|
|
|
|
|
<ContentPage.Resources>
|
|
|
|
<conv:BoolInverterConverter x:Key="BoolInverterConverter"/>
|
|
|
|
</ContentPage.Resources>
|
2024-04-09 12:53:23 +02:00
|
|
|
|
|
|
|
<ContentPage.Content>
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2023-07-19 10:10:36 +02:00
|
|
|
<!--Grid for content and Running process in same row-->
|
|
|
|
<Grid>
|
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
Grid.Row="0">
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
<StackLayout>
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
<Frame
|
2023-07-19 10:10:36 +02:00
|
|
|
Padding="10"
|
|
|
|
Margin="0,10,0,5"
|
|
|
|
HorizontalOptions="FillAndExpand"
|
|
|
|
BackgroundColor="White">
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
<StackLayout
|
2023-07-19 10:10:36 +02:00
|
|
|
Padding="10">
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2023-07-19 10:10:36 +02:00
|
|
|
Text="{Binding LoggedInInfo}" />
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2023-07-19 10:10:36 +02:00
|
|
|
IsVisible="{Binding IsBookingStateInfoVisible}"
|
|
|
|
Text="{Binding BookingStateInfo}" />
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
<Button
|
2023-08-31 12:20:06 +02:00
|
|
|
Text="{x:Static resources:AppResources.MarkingAccountPageManagePersonalData}"
|
2023-07-19 10:10:36 +02:00
|
|
|
Command="{Binding OnManageAccount}"
|
|
|
|
IsEnabled="{Binding IsLogoutPossible}">
|
|
|
|
</Button>
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
<Button
|
2023-07-19 10:10:36 +02:00
|
|
|
Style="{StaticResource SecondaryButton}"
|
2023-08-31 12:20:06 +02:00
|
|
|
Text="{x:Static resources:AppResources.MarkingAccountPageManageLogout}"
|
2023-07-19 10:10:36 +02:00
|
|
|
Command="{Binding OnLogoutRequest}"
|
|
|
|
IsEnabled="{Binding IsLogoutPossible}">
|
|
|
|
</Button>
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
</StackLayout>
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
</Frame>
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
</StackLayout>
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
</ScrollView>
|
2023-05-11 17:39:28 +02:00
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
<!--While process is running-->
|
|
|
|
<sharedGui:RunningProcessView
|
2023-07-19 10:10:36 +02:00
|
|
|
IsVisible="{Binding IsIdle, Converter={StaticResource BoolInverterConverter}}"
|
|
|
|
Grid.Row="0"/>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
2023-05-11 17:39:28 +02:00
|
|
|
</ContentPage.Content>
|
2024-04-09 12:53:23 +02:00
|
|
|
|
2023-05-11 17:39:28 +02:00
|
|
|
</ContentPage>
|