MainWindow.xaml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <Window x:Class="vStationTool.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:vStationTool"
  7. mc:Ignorable="d"
  8. WindowStartupLocation="CenterScreen"
  9. Title="管理工具" Height="225" Width="400">
  10. <Grid>
  11. <Grid x:Name="ServerArea" Visibility="Collapsed">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="*"/>
  14. <RowDefinition Height="*"/>
  15. <RowDefinition Height="*"/>
  16. </Grid.RowDefinitions>
  17. <StackPanel Grid.Row="0" Orientation="Horizontal">
  18. <TextBlock Margin="15,20,0,0" FontSize="17"
  19. VerticalAlignment="Top" Text="服务地址:" />
  20. <TextBlock Margin="15,20,0,0" FontSize="17"
  21. Foreground="Green"
  22. VerticalAlignment="Top" Text="192.168.6.68" />
  23. </StackPanel>
  24. <StackPanel Grid.Row="1" Orientation="Horizontal">
  25. <TextBlock Margin="15,20,0,0" FontSize="17"
  26. VerticalAlignment="Top" Text="服务状态:" />
  27. <TextBlock Margin="15,20,0,0" FontSize="17"
  28. Foreground="Green"
  29. VerticalAlignment="Top" Text="已开启" />
  30. </StackPanel>
  31. <StackPanel Grid.Row="2">
  32. <Border BorderThickness="1" BorderBrush="Gray" Width="360" Height="1" />
  33. </StackPanel>
  34. <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Bottom" Margin="0,0,0,10" >
  35. <Button x:Name="ServerControl"
  36. HorizontalAlignment="Left"
  37. VerticalAlignment="Top" Margin="15,18,0,0" Content="开启" Width="60" FontSize="17" Height="25"/>
  38. <Button x:Name="RestartServer"
  39. HorizontalAlignment="Left"
  40. VerticalAlignment="Top" Margin="15,18,0,0" Content="重启" Width="60" FontSize="17" Height="25"/>
  41. </StackPanel>
  42. </Grid>
  43. <Grid x:Name="ClientArea">
  44. <Grid.RowDefinitions>
  45. <RowDefinition Height="*"/>
  46. <RowDefinition Height="*"/>
  47. <RowDefinition Height="*"/>
  48. </Grid.RowDefinitions>
  49. <StackPanel Grid.Row="0" Orientation="Horizontal">
  50. <TextBlock Margin="15,20,0,0" FontSize="17"
  51. VerticalAlignment="Top" Text="IP地址:" />
  52. <TextBox x:Name="ipAddress"
  53. Padding="1"
  54. FontSize="16"
  55. PreviewTextInput="ipAddress_PreviewTextInput" InputMethod.IsInputMethodEnabled="False" Height="25" Width="180"/>
  56. </StackPanel>
  57. <StackPanel Grid.Row="1" Orientation="Horizontal">
  58. <TextBlock Margin="15,20,0,0" FontSize="17"
  59. VerticalAlignment="Top" Text="端口号:" />
  60. <TextBox x:Name="portNum" FontSize="16"
  61. Padding="1"
  62. PreviewTextInput="portNum_PreviewTextInput" InputMethod.IsInputMethodEnabled="False" Height="25" Width="80"/>
  63. </StackPanel>
  64. <StackPanel Grid.Row="2">
  65. <Border BorderThickness="1" BorderBrush="Gray" Width="360" Height="1" />
  66. </StackPanel>
  67. <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Bottom" Margin="0,0,0,10" >
  68. <Button x:Name="SaveAddress"
  69. HorizontalAlignment="Left"
  70. VerticalAlignment="Top" Margin="15,18,0,0" Content="保存" Width="60" FontSize="17" Height="25"/>
  71. </StackPanel>
  72. </Grid>
  73. </Grid>
  74. </Window>