ChatX/chatclient/LoginWindow.xaml

38 lines
2.0 KiB
Plaintext
Raw Normal View History

2025-06-01 02:57:57 +08:00
<Window x:Class="chatclient.LoginWindow"
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"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:chatclient"
mc:Ignorable="d"
Title="LoginWindow" Height="600" Width="360">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="6*"/>
<RowDefinition Height="2*"/>
</Grid.RowDefinitions>
<Grid Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="6*"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Style="{StaticResource MaterialDesignHeadline3TextBlock}" Text="登录" HorizontalAlignment="Center"/>
<Grid Grid.Row="1" Margin="10" Width="280">
<StackPanel>
<CheckBox Visibility="Hidden"/>
<TextBox VerticalAlignment="Top" materialDesign:HintAssist.Hint="Text (validated)" Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
<CheckBox Visibility="Hidden"/>
<PasswordBox VerticalContentAlignment="Bottom" materialDesign:HintAssist.Hint="Password"
materialDesign:TextFieldAssist.HasClearButton="False"
IsEnabled="{Binding ElementName=RevealPasswordOutlinedEnabled, Path=IsChecked}"
Style="{StaticResource MaterialDesignOutlinedRevealPasswordBox}"/>
<CheckBox x:Name="jiji" Content="记住我" />
</StackPanel>
</Grid>
</Grid>
</Grid>
</Window>