Files
winui3-learning/winui-learning/winui-learning-2/Views/LoginPage.xaml
T

54 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Page
x:Class="winui_learning_2.Views.LoginPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Padding="32">
<StackPanel VerticalAlignment="Center"
HorizontalAlignment="Center"
Spacing="12"
MaxWidth="360"
Width="360">
<TextBlock Text="Nodplay"
HorizontalAlignment="Center"
Style="{ThemeResource TitleLargeTextBlockStyle}"/>
<TextBlock Text="Sign in to continue"
HorizontalAlignment="Center"
Style="{ThemeResource BodyTextBlockStyle}"
Foreground="{ThemeResource TextFillColorSecondaryBrush}"/>
<TextBox x:Name="UsernameBox"
Header="Username"
PlaceholderText="Username"
KeyDown="InputBox_KeyDown"/>
<PasswordBox x:Name="PasswordBox"
Header="Password"
PlaceholderText="Password"
KeyDown="InputBox_KeyDown"/>
<TextBlock x:Name="ErrorText"
Foreground="{ThemeResource SystemFillColorCriticalBrush}"
TextWrapping="Wrap"
Visibility="Collapsed"/>
<Button x:Name="LoginButton"
Content="Sign in"
HorizontalAlignment="Stretch"
Click="LoginButton_Click"/>
</StackPanel>
<ProgressRing x:Name="LoadingRing"
Width="32"
Height="32"
IsActive="False"
Visibility="Collapsed"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Grid>
</Page>