32 lines
2.0 KiB
XML
32 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<l:AppContentPage
|
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
xmlns:l="clr-namespace:Blahblah.FlowerApp"
|
|
xmlns:ctl="clr-namespace:Blahblah.FlowerApp.Controls"
|
|
x:Class="Blahblah.FlowerApp.LoginPage"
|
|
x:Name="loginPage"
|
|
x:DataType="l:LoginPage">
|
|
|
|
<ContentPage.Resources>
|
|
<l:VisibleIfNotNullConverter x:Key="notNullConverter"/>
|
|
</ContentPage.Resources>
|
|
|
|
<Frame HasShadow="False" Margin="10" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"
|
|
BorderColor="Transparent" BackgroundColor="White" BindingContext="{x:Reference loginPage}">
|
|
<Grid RowDefinitions="*,Auto,Auto,Auto,Auto,Auto,*" RowSpacing="12">
|
|
<Entry Grid.Row="1" Text="{Binding UserId}" IsEnabled="{Binding IsEnabled}" Keyboard="Email" Placeholder="{l:Lang userId, Default=User ID}"/>
|
|
<Entry Grid.Row="2" Text="{Binding Password}" IsEnabled="{Binding IsEnabled}" IsPassword="True" Placeholder="{l:Lang password, Default=Password}"/>
|
|
<Label Grid.Row="3" Text="{l:Lang forgotPassword, Default=Forgot password?}" Margin="0,20,0,0" TextColor="Gray"/>
|
|
<Label Grid.Row="4" Text="{Binding ErrorMessage}" Margin="0,10" TextColor="Red" IsVisible="{Binding ErrorMessage, Converter={StaticResource notNullConverter}}"/>
|
|
<Button Grid.Row="5" CornerRadius="6" Text="{l:Lang logIn, Default=Log In}" IsEnabled="{Binding IsEnabled}" BackgroundColor="#007bfc"
|
|
Clicked="Login_Clicked"/>
|
|
|
|
<Frame x:Name="loading" Grid.RowSpan="6" HasShadow="False" BorderColor="Transparent" Margin="0" Padding="20" BackgroundColor="#40000000"
|
|
IsVisible="False" Opacity="0" HorizontalOptions="Center" VerticalOptions="Center">
|
|
<ActivityIndicator HorizontalOptions="Center" VerticalOptions="Center" IsRunning="True"/>
|
|
</Frame>
|
|
</Grid>
|
|
</Frame>
|
|
|
|
</l:AppContentPage> |