MainWindow.xaml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <Window x:Class="EapClientSimulator.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:EapClientSimulator"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="750" Width="900" WindowState="Normal" WindowStartupLocation="CenterScreen">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="80"></RowDefinition>
  12. <RowDefinition Height="110"></RowDefinition>
  13. <RowDefinition Height="110"></RowDefinition>
  14. <RowDefinition Height="110"></RowDefinition>
  15. <RowDefinition Height="60"></RowDefinition>
  16. <RowDefinition Height="60"></RowDefinition>
  17. <RowDefinition Height="60"></RowDefinition>
  18. <RowDefinition Height="60"></RowDefinition>
  19. <RowDefinition Height="60"></RowDefinition>
  20. <RowDefinition Height="*"></RowDefinition>
  21. </Grid.RowDefinitions>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="550"></ColumnDefinition>
  24. <ColumnDefinition Width="*"></ColumnDefinition>
  25. </Grid.ColumnDefinitions>
  26. <GroupBox Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Header="data">
  27. <Grid>
  28. <Label Content="Ip:" HorizontalAlignment="Left" Margin="97,0,0,0" VerticalAlignment="Center"/>
  29. <TextBox Name="txtIp" HorizontalAlignment="Left" Margin="121,0,0,0" TextWrapping="Wrap" Text="127.0.0.1" VerticalAlignment="Center" Width="120"/>
  30. <Label Content="端口号:" HorizontalAlignment="Left" Margin="250,0,0,0" VerticalAlignment="Center"/>
  31. <TextBox x:Name="txtPort" HorizontalAlignment="Left" Margin="304,0,0,0" TextWrapping="Wrap" Text="5000" VerticalAlignment="Center" Width="60"/>
  32. <Button HorizontalAlignment="Left" Margin="400,0,0,0" VerticalAlignment="Center" Name="btnConnect" Content="连接" Click="btnConnect_Click" Width="60"/>
  33. <Button HorizontalAlignment="Left" Margin="475,0,0,0" VerticalAlignment="Center" x:Name="btnDisConnect" Content="断开" Click="btnDisConnect_Click" Width="60" IsEnabled="False"/>
  34. </Grid>
  35. </GroupBox>
  36. <GroupBox Header="Lp1" Grid.Row="1" Grid.Column="0" Name="gp1" IsEnabled="False">
  37. <local:ULpControl x:Name="lp1"></local:ULpControl>
  38. </GroupBox>
  39. <GroupBox Header="Lp2" Grid.Row="2" Grid.Column="0" Name="gp2" IsEnabled="False">
  40. <local:ULpControl x:Name="lp2"></local:ULpControl>
  41. </GroupBox>
  42. <GroupBox Header="Lp3" Grid.Row="3" Grid.Column="0" Name="gp3" IsEnabled="False">
  43. <local:ULpControl x:Name="lp3"></local:ULpControl>
  44. </GroupBox>
  45. <GroupBox Header="Report" Grid.Column="0" Grid.Row="4" IsEnabled="False" Name="gp4">
  46. <local:UReport x:Name="ureport"></local:UReport>
  47. </GroupBox>
  48. <GroupBox Header="link" Grid.Column="0" Grid.Row="5" IsEnabled="False" Name="gp5">
  49. <local:UEventReport x:Name="ueventReport"></local:UEventReport>
  50. </GroupBox>
  51. <GroupBox Header="event" Grid.Column="0" Grid.Row="6" IsEnabled="False" Name="gp6">
  52. <local:UEvent x:Name="uevent"></local:UEvent>
  53. </GroupBox>
  54. <GroupBox Header="alram" Grid.Column="0" Grid.Row="7" IsEnabled="False" Name="gp7">
  55. <local:UAlarm x:Name="ualarm"></local:UAlarm>
  56. </GroupBox>
  57. <GroupBox Header="sv" Grid.Column="0" Grid.Row="8" IsEnabled="False" Name="gp8">
  58. <local:UStatusVariable x:Name="ustatus"></local:UStatusVariable>
  59. </GroupBox>
  60. <GroupBox Name="gp10" Header="Received Data" Grid.Row="0" Grid.Column="1" Grid.RowSpan="10">
  61. <ListBox Name="lstReceivedData"></ListBox>
  62. </GroupBox>
  63. </Grid>
  64. </Window>