<Window x:Class="CollaborativePlatformProject.MainWindow" 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:local="clr-namespace:CollaborativePlatformProject" xmlns:HandyControl="clr-namespace:HandyControl.Controls;assembly=HandyControl" xmlns:LayUI="clr-namespace:LayUI.Wpf.Controls;assembly=LayUI.Wpf" mc:Ignorable="d" AllowsTransparency="True" Background=" Transparent" WindowStartupLocation="CenterScreen" WindowStyle="None" Title="" Height="500" Width="350" ResizeMode="NoResize"> <LayUI:LayTitleBar Background="{DynamicResource Blue}" CornerRadius="10" WindowState="{Binding WindowState, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> <Border CornerRadius="0 0 10 10" Background="White"> <StackPanel> <StackPanel Background="{DynamicResource Blue}" Height="150"> <Canvas Background="White" Width="80" Height="80"> <Image Width="80" Height="80" Panel.ZIndex="0"> <Image.Clip> <EllipseGeometry RadiusX="40" RadiusY="40" Center="40,40" /> </Image.Clip> </Image> </Canvas> <TextBlock Margin="0 10 0 0" Text="协同登录平台" HorizontalAlignment="Center" Foreground="Wheat" FontSize="18" /> </StackPanel> <StackPanel Name="sp_Login" Margin="0 50 0 0" Visibility="Visible"> <!--账户密码--> <DockPanel> <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="账号:" VerticalAlignment="Center"></LayUI:LayTextBlock> <LayUI:LayTextBox Name="tb_userName" LayUI:Watermark="请输入账号" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox> </DockPanel> <DockPanel Margin=" 0 30 0 0"> <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock> <LayUI:LayPasswordBox Name="tb_userPwd" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox> <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>--> </DockPanel> <!--登陆按钮--> <DockPanel Margin=" 0 38 0 0"> <LayUI:LayButton HorizontalAlignment="Left" Height="30" Margin="50 0 0 0" Content="登陆" FontSize="15" Click="LoginLayButton_Click" /> <LayUI:LayButton HorizontalAlignment="Left" Height="30" Margin="60 0 0 0" Content="注册" FontSize="15" Click="RegisterLayButton_Click" /> </DockPanel> <DockPanel Margin="0 20 0 0"> <LayUI:LayButton HorizontalAlignment="Right" Height="30" Margin="0 0 38 0" Click="TemporaryLogin_Click" Content="临时登陆" FontSize="15"></LayUI:LayButton> </DockPanel> </StackPanel> <StackPanel Name="sp_Register" Margin="0 50 0 0" Visibility="Collapsed"> <!--账户密码--> <DockPanel> <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="账号:" VerticalAlignment="Center"></LayUI:LayTextBlock> <LayUI:LayTextBox Name="tb_rguserName" LayUI:Watermark="请输入账号" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox> </DockPanel> <DockPanel Margin=" 0 30 0 0"> <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock> <LayUI:LayPasswordBox Name="tb_rguserPwd" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox> <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>--> </DockPanel> <DockPanel Margin=" 0 30 0 0"> <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock> <LayUI:LayPasswordBox Name="tb_rgconuserPwd" LayUI:Watermark="请确认密码" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox> <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>--> </DockPanel> <DockPanel Margin="0 20 0 0"> <LayUI:LayButton HorizontalAlignment="Center" Height="30" Content="注册" FontSize="15"></LayUI:LayButton> </DockPanel> </StackPanel> <StackPanel Name="sp_temporaryLogin" Margin="0 100 0 0" Visibility="Collapsed"> <!--账户密码--> <DockPanel> <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="邀请码:" VerticalAlignment="Center"></LayUI:LayTextBlock> <LayUI:LayTextBox Name="tb_InvitationCode" LayUI:Watermark="请输入邀请码" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox> </DockPanel> <DockPanel Margin="0 50 0 0"> <LayUI:LayButton HorizontalAlignment="Right" Height="30" Margin="0 0 38 0" Click="TemporaryLogin2_Click" Content="登陆" FontSize="15"></LayUI:LayButton> </DockPanel> </StackPanel> </StackPanel> </Border> </LayUI:LayTitleBar> </Window>