MainWindow.xaml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. <!--账户密码-->
  52. <DockPanel>
  53. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="账号:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  54. <LayUI:LayTextBox Name="tb_rguserName" LayUI:Watermark="请输入账号" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox>
  55. </DockPanel>
  56. <DockPanel Margin=" 0 30 0 0">
  57. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  58. <LayUI:LayPasswordBox Name="tb_rguserPwd" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox>
  59. <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>-->
  60. </DockPanel>
  61. <DockPanel Margin=" 0 30 0 0">
  62. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="密码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  63. <LayUI:LayPasswordBox Name="tb_rgconuserPwd" LayUI:Watermark="请确认密码" HorizontalAlignment="Left" Width="200"></LayUI:LayPasswordBox>
  64. <!--<TextBox HorizontalAlignment="Left" Width="200"></TextBox>-->
  65. </DockPanel>
  66. <DockPanel Margin="0 20 0 0">
  67. <LayUI:LayButton HorizontalAlignment="Center" Height="30" Content="注册" FontSize="15" Click="LayButton_Click"></LayUI:LayButton>
  68. </DockPanel>
  69. </StackPanel>
  70. <StackPanel Name="sp_temporaryLogin" Margin="0 100 0 0" Visibility="Collapsed">
  71. <!--账户密码-->
  72. <DockPanel>
  73. <LayUI:LayTextBlock Width="70" FontSize="18" Margin="30 0 0 0" Text="邀请码:" VerticalAlignment="Center"></LayUI:LayTextBlock>
  74. <LayUI:LayTextBox Name="tb_InvitationCode" LayUI:Watermark="请输入邀请码" HorizontalAlignment="Left" Width="200"></LayUI:LayTextBox>
  75. </DockPanel>
  76. <DockPanel Margin="0 50 0 0">
  77. <LayUI:LayButton HorizontalAlignment="Right" Height="30" Margin="0 0 38 0" Click="TemporaryLogin2_Click" Content="登陆" FontSize="15"></LayUI:LayButton>
  78. </DockPanel>
  79. </StackPanel>
  80. <DockPanel>
  81. <Button Width="80" Content="楼栋管理器" Click="Button_Click"/>
  82. <Button Width="80" Content="再次楼栋" Click="Button_Click"/>
  83. <Button Width="80" Content="打开图纸" Click="Button_Click_1"/>
  84. <Button Width="80" Content="再次打开图纸" Click="Button_Click_1"/>
  85. </DockPanel>
  86. </StackPanel>
  87. </Border>
  88. </LayUI:LayTitleBar>
  89. </Window>