MainWindow.xaml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <Window x:Class="CollaborativePlatformMain.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:HandyControl="clr-namespace:HandyControl.Controls;assembly=HandyControl"
  7. xmlns:LayUI="clr-namespace:LayUI.Wpf.Controls;assembly=LayUI.Wpf"
  8. mc:Ignorable="d"
  9. AllowsTransparency="True"
  10. Background=" Transparent"
  11. WindowStartupLocation="CenterScreen"
  12. WindowStyle="None"
  13. Title="" Height="500" Width="350" ResizeMode="NoResize">
  14. <LayUI:LayTitleBar Background="{DynamicResource Blue}" CornerRadius="10"
  15. WindowState="{Binding WindowState, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  16. <Border CornerRadius="0 0 10 10" Background="White">
  17. <StackPanel>
  18. <StackPanel Background="{DynamicResource Blue}" Height="150">
  19. <Canvas Background="White" Width="80" Height="80">
  20. <Image Width="80" Height="80" Panel.ZIndex="0">
  21. <Image.Clip>
  22. <EllipseGeometry RadiusX="40" RadiusY="40" Center="40,40" />
  23. </Image.Clip>
  24. </Image>
  25. </Canvas>
  26. <TextBlock Margin="0 10 0 0" Text="协同登录平台" HorizontalAlignment="Center" Foreground="Wheat" FontSize="18" />
  27. </StackPanel>
  28. <StackPanel Name="sp_Login" Margin="0 50 0 0" Visibility="Visible">
  29. <!--账户密码-->
  30. <DockPanel>
  31. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="账号:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  32. <LayUI:LayTextBox Name="tb_userName" LayUI:Watermark="请输入账号" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox>
  33. </DockPanel>
  34. <DockPanel Margin=" 0 30 0 0">
  35. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  36. <LayUI:LayPasswordBox Name="tb_userPwd" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox>
  37. <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>-->
  38. </DockPanel>
  39. <!--登陆按钮-->
  40. <DockPanel Margin=" 0 38 0 0">
  41. <LayUI:LayButton HorizontalAlignment="Left" Height="30" Margin="50 0 0 0" Content="登陆" FontSize="15"
  42. Click="LoginLayButton_Click" />
  43. <LayUI:LayButton HorizontalAlignment="Left" Height="30" Margin="60 0 0 0" Content="注册" FontSize="15"
  44. Click="RegisterLayButton_Click" />
  45. </DockPanel>
  46. <DockPanel Margin="0 20 0 0">
  47. <LayUI:LayButton HorizontalAlignment="Right" Height="30" Margin="0 0 38 0" Click="TemporaryLogin_Click" Content="临时登陆" FontSize="15"></LayUI:LayButton>
  48. </DockPanel>
  49. </StackPanel>
  50. <StackPanel Name="sp_Register" Margin="0 50 0 0" Visibility="Collapsed">
  51. <DockPanel>
  52. <Button Content="返回" HorizontalAlignment="Left" Margin="10,-60,0,0" Click="Button_Click_3"/>
  53. </DockPanel>
  54. <!--账户密码-->
  55. <DockPanel>
  56. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="账号:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  57. <LayUI:LayTextBox Name="tb_rguserName" LayUI:Watermark="请输入账号" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox>
  58. </DockPanel>
  59. <DockPanel Margin=" 0 30 0 0">
  60. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  61. <LayUI:LayPasswordBox Name="tb_rguserPwd" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox>
  62. <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>-->
  63. </DockPanel>
  64. <DockPanel Margin=" 0 30 0 0">
  65. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  66. <LayUI:LayPasswordBox Name="tb_rgconuserPwd" LayUI:Watermark="请确认密码" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox>
  67. <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>-->
  68. </DockPanel>
  69. <DockPanel Margin="0 20 0 0">
  70. <LayUI:LayButton HorizontalAlignment="Center" Height="30" Content="注册" FontSize="15" Click="LayButton_Click"></LayUI:LayButton>
  71. </DockPanel>
  72. </StackPanel>
  73. <StackPanel Name="sp_temporaryLogin" Margin="0 100 0 0" Visibility="Collapsed">
  74. <DockPanel>
  75. <Button Content="返回" HorizontalAlignment="Left" Margin="10,-140,0,0" Click="Button_Click_2"/>
  76. </DockPanel>
  77. <!--账户密码-->
  78. <DockPanel>
  79. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="邀请码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  80. <LayUI:LayTextBox Name="tb_InvitationCode" LayUI:Watermark="请输入邀请码" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox>
  81. </DockPanel>
  82. <DockPanel Margin="0 50 0 0">
  83. <LayUI:LayButton HorizontalAlignment="Right" Height="30" Margin="0 0 38 0" Click="TemporaryLogin2_Click" Content="登陆" FontSize="15"></LayUI:LayButton>
  84. </DockPanel>
  85. </StackPanel>
  86. <!--<DockPanel>
  87. <Button Width="80" Content="楼栋管理器" Click="Button_Click"/>
  88. <Button Width="80" Content="再次楼栋" Click="Button_Click"/>
  89. <Button Width="80" Content="打开图纸" Click="Button_Click_1"/>
  90. <Button Width="80" Content="再次打开图纸" Click="Button_Click_1"/>
  91. </DockPanel>-->
  92. </StackPanel>
  93. </Border>
  94. </LayUI:LayTitleBar>
  95. </Window>