bitwarden-android/src/App/Pages/Accounts/LoginPage.xaml

73 lines
2.8 KiB
Text
Raw Normal View History

2019-04-19 16:42:55 +03:00
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Bit.App.Pages.LoginPage"
xmlns:pages="clr-namespace:Bit.App.Pages"
2019-05-01 22:11:54 +03:00
xmlns:controls="clr-namespace:Bit.App.Controls"
2019-04-22 20:47:45 +03:00
xmlns:u="clr-namespace:Bit.App.Utilities"
2019-04-19 16:42:55 +03:00
x:DataType="pages:LoginPageViewModel"
Title="{Binding PageTitle}">
2019-05-01 22:11:54 +03:00
2019-04-19 16:42:55 +03:00
<ContentPage.BindingContext>
<pages:LoginPageViewModel />
</ContentPage.BindingContext>
2019-05-01 22:11:54 +03:00
<ContentPage.Resources>
<ResourceDictionary>
<u:InverseBoolConverter x:Key="inverseBool" />
</ResourceDictionary>
</ContentPage.Resources>
2019-04-19 16:42:55 +03:00
<ContentPage.ToolbarItems>
2019-05-01 22:11:54 +03:00
<ToolbarItem Text="{u:I18n LogIn}" Clicked="LogIn_Clicked" />
2019-04-19 16:42:55 +03:00
</ContentPage.ToolbarItems>
2019-05-01 22:11:54 +03:00
<ScrollView>
<StackLayout Spacing="20">
<StackLayout StyleClass="box">
<StackLayout StyleClass="box-row">
<Label
Text="{u:I18n EmailAddress}"
StyleClass="box-label" />
<Entry
Text="{Binding Email}"
StyleClass="box-value" />
</StackLayout>
<Grid StyleClass="box-row">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Label
Text="{u:I18n MasterPassword}"
StyleClass="box-label"
Grid.Row="0"
Grid.Column="0" />
<controls:MonoEntry
Text="{Binding MasterPassword}"
StyleClass="box-value"
IsPassword="{Binding ShowPassword, Converter={StaticResource inverseBool}}"
Grid.Row="1"
Grid.Column="0" />
<controls:FaButton
StyleClass="box-row-button, box-row-button-platform"
Text="{Binding ShowPasswordIcon}"
Command="{Binding TogglePasswordCommand}"
Grid.Row="0"
Grid.Column="1"
Grid.RowSpan="2" />
</Grid>
</StackLayout>
<StackLayout Padding="10, 0">
<Button Text="{u:I18n GetPasswordHint}"></Button>
</StackLayout>
</StackLayout>
</ScrollView>
2019-04-19 16:42:55 +03:00
</ContentPage>