2019-03-28 22:10:10 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2019-05-07 05:30:54 +02:00
|
|
|
<pages:BaseContentPage
|
2019-03-28 22:10:10 +01:00
|
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
x:Class="Bit.App.Pages.HomePage"
|
2019-03-29 04:52:33 +01:00
|
|
|
xmlns:pages="clr-namespace:Bit.App.Pages"
|
2019-05-02 18:20:56 +02:00
|
|
|
xmlns:controls="clr-namespace:Bit.App.Controls"
|
2019-04-22 19:47:45 +02:00
|
|
|
xmlns:u="clr-namespace:Bit.App.Utilities"
|
2019-03-29 14:16:22 +01:00
|
|
|
x:DataType="pages:HomeViewModel"
|
2022-03-07 18:28:06 +01:00
|
|
|
x:Name="_page"
|
2019-03-29 04:52:33 +01:00
|
|
|
Title="{Binding PageTitle}">
|
2019-03-28 22:10:10 +01:00
|
|
|
<ContentPage.BindingContext>
|
2019-03-29 04:52:33 +01:00
|
|
|
<pages:HomeViewModel />
|
2019-03-28 22:10:10 +01:00
|
|
|
</ContentPage.BindingContext>
|
2022-02-23 18:40:17 +01:00
|
|
|
|
2020-09-03 18:30:40 +02:00
|
|
|
<ContentPage.ToolbarItems>
|
2022-02-23 18:40:17 +01:00
|
|
|
<controls:ExtendedToolbarItem
|
|
|
|
x:Name="_accountAvatar"
|
|
|
|
x:Key="accountAvatar"
|
|
|
|
IconImageSource="{Binding AvatarImageSource}"
|
|
|
|
Command="{Binding Source={x:Reference _accountListOverlay}, Path=ToggleVisibililtyCommand}"
|
|
|
|
Order="Primary"
|
|
|
|
Priority="-1"
|
|
|
|
UseOriginalImage="True"
|
|
|
|
AutomationProperties.IsInAccessibleTree="True"
|
|
|
|
AutomationProperties.Name="{u:I18n Account}" />
|
2022-10-29 00:10:41 +02:00
|
|
|
<ToolbarItem x:Name="_closeButton" Text="{u:I18n Close}" Command="{Binding CloseCommand}" Order="Primary" Priority="-1"/>
|
2022-02-23 18:40:17 +01:00
|
|
|
<ToolbarItem
|
|
|
|
Icon="cog_environment.png" Clicked="Environment_Clicked" Order="Primary"
|
|
|
|
AutomationProperties.IsInAccessibleTree="True"
|
|
|
|
AutomationProperties.Name="{u:I18n Options}" />
|
2020-09-03 18:30:40 +02:00
|
|
|
</ContentPage.ToolbarItems>
|
2019-03-28 22:10:10 +01:00
|
|
|
|
2022-02-23 18:40:17 +01:00
|
|
|
<ContentPage.Resources>
|
|
|
|
<ResourceDictionary>
|
2022-10-29 00:10:41 +02:00
|
|
|
<u:InverseBoolConverter x:Key="inverseBool" />
|
|
|
|
<StackLayout x:Name="_mainLayout" x:Key="mainLayout" Spacing="30" Padding="20, 50, 20, 0">
|
|
|
|
<Image
|
|
|
|
x:Name="_logo"
|
|
|
|
Source="logo.png"
|
|
|
|
VerticalOptions="Center" />
|
|
|
|
<Label Text="{u:I18n LoginOrCreateNewAccount}"
|
|
|
|
StyleClass="text-lg"
|
|
|
|
HorizontalTextAlignment="Center"/>
|
|
|
|
<StackLayout
|
|
|
|
StyleClass="box-row">
|
|
|
|
<Label
|
|
|
|
Text="{u:I18n EmailAddress}"
|
|
|
|
StyleClass="box-label" />
|
|
|
|
<Entry
|
|
|
|
x:Name="_email"
|
|
|
|
Text="{Binding Email}"
|
|
|
|
Keyboard="Email"
|
|
|
|
StyleClass="box-value">
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
|
|
<VisualState x:Name="Disabled">
|
|
|
|
<VisualState.Setters>
|
|
|
|
<Setter Property="TextColor" Value="{DynamicResource MutedColor}" />
|
|
|
|
</VisualState.Setters>
|
|
|
|
</VisualState>
|
|
|
|
</VisualStateGroup>
|
|
|
|
</VisualStateManager.VisualStateGroups>
|
|
|
|
</Entry>
|
|
|
|
<StackLayout
|
|
|
|
Orientation="Horizontal"
|
|
|
|
Margin="0, 16, 0 ,0">
|
|
|
|
<StackLayout.GestureRecognizers>
|
|
|
|
<TapGestureRecognizer
|
|
|
|
Command="{Binding RememberEmailCommand}" />
|
|
|
|
</StackLayout.GestureRecognizers>
|
|
|
|
<Label
|
|
|
|
Text="{u:I18n RememberMe}"
|
|
|
|
StyleClass="text-sm"
|
|
|
|
HorizontalOptions="FillAndExpand"
|
|
|
|
VerticalOptions="Center"
|
|
|
|
VerticalTextAlignment="Center"/>
|
|
|
|
<Switch
|
|
|
|
Scale="0.8"
|
|
|
|
IsToggled="{Binding RememberEmail}"
|
|
|
|
VerticalOptions="Center"/>
|
2022-02-23 18:40:17 +01:00
|
|
|
</StackLayout>
|
|
|
|
</StackLayout>
|
2022-10-29 00:10:41 +02:00
|
|
|
<Button Text="{u:I18n Continue}"
|
|
|
|
StyleClass="btn-primary"
|
|
|
|
IsEnabled="{Binding CanContinue}"
|
|
|
|
Command="{Binding ContinueCommand}" />
|
|
|
|
|
|
|
|
<Label FormattedText="{Binding CreateAccountText}"
|
|
|
|
Margin="0, 10"
|
|
|
|
StyleClass="box-footer-label">
|
|
|
|
<Label.GestureRecognizers>
|
|
|
|
<TapGestureRecognizer Command="{Binding CreateAccountCommand}" />
|
|
|
|
</Label.GestureRecognizers>
|
|
|
|
</Label>
|
2019-05-02 18:26:09 +02:00
|
|
|
</StackLayout>
|
2022-02-23 18:40:17 +01:00
|
|
|
</ResourceDictionary>
|
|
|
|
</ContentPage.Resources>
|
|
|
|
|
|
|
|
<AbsoluteLayout
|
|
|
|
x:Name="_absLayout"
|
|
|
|
VerticalOptions="FillAndExpand"
|
|
|
|
HorizontalOptions="FillAndExpand">
|
|
|
|
<ContentView
|
|
|
|
x:Name="_mainContent"
|
|
|
|
AbsoluteLayout.LayoutFlags="All"
|
|
|
|
AbsoluteLayout.LayoutBounds="0, 0, 1, 1">
|
|
|
|
</ContentView>
|
|
|
|
|
|
|
|
<controls:AccountSwitchingOverlayView
|
|
|
|
x:Name="_accountListOverlay"
|
|
|
|
AbsoluteLayout.LayoutBounds="0, 0, 1, 1"
|
|
|
|
AbsoluteLayout.LayoutFlags="All"
|
2022-03-07 18:28:06 +01:00
|
|
|
MainPage="{Binding Source={x:Reference _page}}"
|
2022-02-23 18:40:17 +01:00
|
|
|
BindingContext="{Binding AccountSwitchingOverlayViewModel}"/>
|
|
|
|
</AbsoluteLayout>
|
2019-03-28 22:10:10 +01:00
|
|
|
|
2019-05-07 05:30:54 +02:00
|
|
|
</pages:BaseContentPage>
|