MainWindow.xaml 5.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <Window x:Class="CollaborativePlatformProject.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:CollaborativePlatformProject"
  7. xmlns:HandyControl="clr-namespace:HandyControl.Controls;assembly=HandyControl"
  8. xmlns:LayUI="clr-namespace:LayUI.Wpf.Controls;assembly=LayUI.Wpf"
  9. mc:Ignorable="d"
  10. AllowsTransparency="True"
  11. Background=" Transparent"
  12. WindowStartupLocation="CenterScreen"
  13. WindowStyle="None"
  14. Title="" Height="500" Width="350" ResizeMode="NoResize">
  15. <LayUI:LayTitleBar Background="{DynamicResource Blue}" CornerRadius="10"
  16. WindowState="{Binding WindowState, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  17. <Border CornerRadius="0 0 10 10" Background="White">
  18. <StackPanel>
  19. <StackPanel Background="{DynamicResource Blue}" Height="150">
  20. <Canvas Background="White" Width="80" Height="80">
  21. <Image Width="80" Height="80" Panel.ZIndex="0">
  22. <Image.Clip>
  23. <EllipseGeometry RadiusX="40" RadiusY="40" Center="40,40" />
  24. </Image.Clip>
  25. </Image>
  26. </Canvas>
  27. <TextBlock Margin="0 10 0 0" Text="协同登录平台" HorizontalAlignment="Center" Foreground="Wheat" FontSize="18" />
  28. </StackPanel>
  29. <StackPanel Name="sp_Login" Margin="0 50 0 0" Visibility="Visible">
  30. <!--账户密码-->
  31. <DockPanel>
  32. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="账号:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  33. <LayUI:LayTextBox Name="tb_userName" LayUI:Watermark="请输入账号" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox>
  34. </DockPanel>
  35. <DockPanel Margin=" 0 30 0 0">
  36. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  37. <LayUI:LayPasswordBox Name="tb_userPwd" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox>
  38. <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>-->
  39. </DockPanel>
  40. <!--登陆按钮-->
  41. <DockPanel Margin=" 0 38 0 0">
  42. <LayUI:LayButton HorizontalAlignment="Left" Height="30" Margin="50 0 0 0" Content="登陆" FontSize="15"
  43. Click="LoginLayButton_Click" />
  44. <LayUI:LayButton HorizontalAlignment="Left" Height="30" Margin="60 0 0 0" Content="注册" FontSize="15"
  45. Click="RegisterLayButton_Click" />
  46. </DockPanel>
  47. <DockPanel Margin="0 20 0 0">
  48. <LayUI:LayButton HorizontalAlignment="Right" Height="30" Margin="0 0 38 0" Click="TemporaryLogin_Click" Content="临时登陆" FontSize="15"></LayUI:LayButton>
  49. </DockPanel>
  50. </StackPanel>
  51. <StackPanel Name="sp_Register" Margin="0 50 0 0" Visibility="Collapsed">
  52. <!--账户密码-->
  53. <DockPanel>
  54. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="账号:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  55. <LayUI:LayTextBox Name="tb_rguserName" LayUI:Watermark="请输入账号" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox>
  56. </DockPanel>
  57. <DockPanel Margin=" 0 30 0 0">
  58. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  59. <LayUI:LayPasswordBox Name="tb_rguserPwd" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox>
  60. <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>-->
  61. </DockPanel>
  62. <DockPanel Margin=" 0 30 0 0">
  63. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  64. <LayUI:LayPasswordBox Name="tb_rgconuserPwd" LayUI:Watermark="请确认密码" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox>
  65. <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>-->
  66. </DockPanel>
  67. <DockPanel Margin="0 20 0 0">
  68. <LayUI:LayButton HorizontalAlignment="Center" Height="30" Content="注册" FontSize="15"></LayUI:LayButton>
  69. </DockPanel>
  70. </StackPanel>
  71. <StackPanel Name="sp_temporaryLogin" Margin="0 100 0 0" Visibility="Collapsed">
  72. <!--账户密码-->
  73. <DockPanel>
  74. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="邀请码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  75. <LayUI:LayTextBox Name="tb_InvitationCode" LayUI:Watermark="请输入邀请码" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox>
  76. </DockPanel>
  77. <DockPanel Margin="0 50 0 0">
  78. <LayUI:LayButton HorizontalAlignment="Right" Height="30" Margin="0 0 38 0" Click="TemporaryLogin2_Click" Content="登陆" FontSize="15"></LayUI:LayButton>
  79. </DockPanel>
  80. </StackPanel>
  81. </StackPanel>
  82. </Border>
  83. </LayUI:LayTitleBar>
  84. </Window>