You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

MainWindow.xaml 5.9 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <Window x:Class="Client.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:Client"
  7. mc:Ignorable="d"
  8. Title="ClientVI" Height="738" Width="850" Background="White" ResizeMode="CanResizeWithGrip" WindowStyle="None" MouseLeftButtonDown="DragWindow" MinHeight="738" MinWidth="1100">
  9. <Window.Resources>
  10. <ImageBrush x:Key="Logo" ImageSource="Logo.png"/>
  11. </Window.Resources>
  12. <Grid Name="MainGrid" Margin="0,0,0,0">
  13. <!--Title行删去了两个赋值语句,等之后补回来-->
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="Auto"/>
  16. <RowDefinition Height="37*"/>
  17. <RowDefinition Height="138*"/>
  18. <RowDefinition Height="175*"/>
  19. <RowDefinition Height="175*"/>
  20. <RowDefinition Height="175*"/>
  21. <RowDefinition Height="0*"/>
  22. </Grid.RowDefinitions>
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="58*"/>
  25. <ColumnDefinition Width="58*"/>
  26. <ColumnDefinition Width="Auto"/>
  27. <ColumnDefinition Width="362*"/>
  28. <ColumnDefinition Width="71*"/>
  29. <ColumnDefinition Width="0*"/>
  30. </Grid.ColumnDefinitions>
  31. <!--给地图留好位置-->
  32. <Grid x:Name="UnderLayerOfMap" Margin="6,16,35,14" Grid.RowSpan="5" Grid.Column="3" Grid.Row="1" />
  33. <Grid x:Name="UpperLayerOfMap" Margin="6,16,35,14" Grid.RowSpan="5" Grid.Column="3" Grid.Row="1" />
  34. <!--右上角蓝绿小按钮-->
  35. <Button x:Name="PorC" Content="▶" Margin="0,16,0,0" Background="Green" BorderBrush="Green" FontFamily="Microsoft YaHei" Click="ClickToPauseOrContinue" Grid.Column="4" Grid.Row="2" HorizontalAlignment="Left" Width="24" Height="26" VerticalAlignment="Top"/>
  36. <Button Name="Connect" Content="🔗" Margin="0,11,0,0" VerticalAlignment="Top" Background="Aqua" Click="ClickToConnect" Height="25" Grid.Column="4" HorizontalAlignment="Left" Width="25" Grid.Row="1"/>
  37. <!--右上角的最大化、关闭、最小化按钮-->
  38. <Button Name="MaxButton" Content="🗖" Background="White" FontFamily="Microsoft YaHei" BorderBrush="White" Click="ClickToMaxmize" Grid.Column="4" Height="38" VerticalAlignment="Center" Margin="0,0,47,0" HorizontalAlignment="Right" Width="44"/>
  39. <Button Content="❎" Background="White" FontFamily="Microsoft YaHei" BorderBrush="White" Click="ClickToClose" Grid.Column="4" Height="38" VerticalAlignment="Center" Margin="0,0,1,0" HorizontalAlignment="Right" Width="44"/>
  40. <Button Content="—" Background="White" FontFamily="Microsoft YaHei" BorderBrush="White" Click="ClickToMinimize" Grid.Column="4" Height="38" VerticalAlignment="Center" Margin="0,0,93,0" HorizontalAlignment="Right" Width="44"/>
  41. <!--右侧“帮助”、“关于我们”按钮-->
  42. <Button Content=" 帮&#xA; 助&#xA;(H)" Margin="66,50,0,0" Background="Ivory" Click="ClickForHelp" Grid.Row="2" Grid.Column="4" HorizontalAlignment="Left" Width="46" Height="80" VerticalAlignment="Top"/>
  43. <Button Content="关&#xA;于&#xA;我&#xA;们&#xA;(F)" Margin="68,115,0,0" Background="Ivory" Click="ClickToVisitEESAST" Grid.Row="4" Grid.Column="4" Grid.RowSpan="2" HorizontalAlignment="Left" Width="38" Height="97" VerticalAlignment="Top" />
  44. <!--左上角的EESAST标志、THUAI6文字提示语以及其他按钮-->
  45. <Image Stretch="Fill" Source="/Logo.png" HorizontalAlignment="Left" Width="39" Height="38" VerticalAlignment="Center"/>
  46. <Label Content="THUAI6 Client for players " Margin="37,0,0,0" FontSize="15" Grid.ColumnSpan="2" Grid.Column="0" HorizontalAlignment="Left" Width="194" Height="32" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
  47. <Label.RenderTransform>
  48. <TransformGroup>
  49. <ScaleTransform/>
  50. <SkewTransform/>
  51. <RotateTransform Angle="-0.377"/>
  52. <TranslateTransform/>
  53. </TransformGroup>
  54. </Label.RenderTransform>
  55. </Label>
  56. <Button Content="配置连接(C)" Height="35" Background="White" FontFamily="Microsoft YaHei" FontSize="16" BorderBrush="White" Click="ClickToSetConnect" Grid.Column="3" Grid.Row="0" Margin="320
  57. ,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="90"/>
  58. <Button Content="我的AI(M)" Height="35" Width="82" Background="White" FontFamily="Microsoft YaHei" FontSize="16" BorderBrush="White" Click="ClickToEnterVS" Grid.Column="3" Grid.Row="0" Margin="223,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
  59. <Button Content="获取更新(U)" Height="35" Background="White" FontFamily="Microsoft YaHei" FontSize="16" BorderBrush="White" Click="ClickForUpdate" Grid.Column="3" Grid.Row="0" Margin="120,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="93"/>
  60. <Button Content="天梯信息(L)" Height="35" Background="White" FontFamily="Microsoft YaHei" FontSize="16" BorderBrush="White" Click="ClickToCheckLadder" Grid.Column="3" Grid.Row="0" Margin="20,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="91"/>
  61. <!--一横一竖两条实线-->
  62. <Border BorderThickness="1" Background="Black" BorderBrush="Black" HorizontalAlignment="Center" Margin="0,5,0,0" Width="2" Grid.RowSpan="5" Grid.Column="2" Grid.Row="1"/>
  63. <Border BorderThickness="1" Background="Black" BorderBrush="Black" Height="2" Margin="67,37,1,0" VerticalAlignment="Top" Grid.ColumnSpan="3" Grid.Row="0" Grid.Column="1"/>
  64. </Grid>
  65. </Window>