|
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | 6 | xmlns:local="clr-namespace:MeowType.NetDebug" |
7 | 7 | mc:Ignorable="d" |
8 | | - Title="Net Debug" Height="450" Width="800" MinHeight="450" MinWidth="800" FontFamily="Consolas, Fira Code"> |
9 | | - <Grid Margin="5"> |
10 | | - <Grid.ColumnDefinitions> |
11 | | - <ColumnDefinition MinWidth="200" Width="0.5*" MaxWidth="300"></ColumnDefinition> |
12 | | - <ColumnDefinition Width="1*"></ColumnDefinition> |
13 | | - </Grid.ColumnDefinitions> |
14 | | - <Grid Grid.Column="0"> |
15 | | - <TabControl> |
16 | | - <TabItem Name="Tab_Tcp_Server" Header="Tcp Server"> |
17 | | - <Grid Background="#FFE5E5E5"/> |
18 | | - </TabItem> |
19 | | - <TabItem Name="Tab_Tcp_Client" Header="Tcp Client"> |
20 | | - <Grid Background="#FFE5E5E5"/> |
21 | | - </TabItem> |
22 | | - <TabItem Name="Tab_Udp" Header="Udp" IsSelected="True"> |
23 | | - <Grid Margin="10,0"> |
24 | | - <Grid.RowDefinitions> |
25 | | - <RowDefinition Height="50"></RowDefinition> |
26 | | - <RowDefinition Height="50"></RowDefinition> |
27 | | - <RowDefinition Height="100"></RowDefinition> |
28 | | - <RowDefinition Height="50"></RowDefinition> |
29 | | - <RowDefinition Height="50"></RowDefinition> |
30 | | - <RowDefinition Height="50"></RowDefinition> |
31 | | - </Grid.RowDefinitions> |
32 | | - <Grid Grid.Row="0"> |
33 | | - <Grid.RowDefinitions> |
34 | | - <RowDefinition Height="1*"></RowDefinition> |
35 | | - <RowDefinition Height="1*"></RowDefinition> |
36 | | - </Grid.RowDefinitions> |
37 | | - <Label Grid.Row="0">Local IP</Label> |
38 | | - <ComboBox Grid.Row="1" IsEditable="True" Name="UDP_Local_ip" SelectedIndex="0" Loaded="UDP_Local_ip_Loaded"> |
39 | | - <Label Name="UDP_Local_ip_localhost" ToolTip="127.0.0.1">localhost</Label> |
40 | | - </ComboBox> |
41 | | - </Grid> |
42 | | - <Grid Grid.Row="1"> |
43 | | - <Grid.RowDefinitions> |
44 | | - <RowDefinition Height="1*"></RowDefinition> |
45 | | - <RowDefinition Height="1*"></RowDefinition> |
46 | | - </Grid.RowDefinitions> |
47 | | - <Label Grid.Row="0">Local Port</Label> |
48 | | - <TextBox Grid.Row="1" Name="UDP_Local_port">12345</TextBox> |
49 | | - </Grid> |
50 | | - <Grid Grid.Row="2" Margin="0,10"> |
51 | | - <Grid.RowDefinitions> |
52 | | - <RowDefinition Height="1*"></RowDefinition> |
53 | | - <RowDefinition Height="1*"></RowDefinition> |
54 | | - <RowDefinition Height="1*"></RowDefinition> |
55 | | - <RowDefinition Height="1*"></RowDefinition> |
56 | | - </Grid.RowDefinitions> |
57 | | - <RadioButton Name="UDP_type_defalut" GroupName="UDP_type" IsChecked="True">Default</RadioButton> |
58 | | - <RadioButton Name="UDP_type_broadcast" GroupName="UDP_type" Grid.Row="1" Checked="UDP_type_broadcast_Checked" Unchecked="UDP_type_broadcast_UnChecked">Broadcast</RadioButton> |
59 | | - <RadioButton Name="UDP_type_multicast" GroupName="UDP_type" Grid.Row="2" Checked="UDP_type_multicast_Checked" Unchecked="UDP_type_multicast_Unchecked">Multicast</RadioButton> |
60 | | - <ComboBox Grid.Row="3" IsEditable="True" Name="UDP_multicast_ip" SelectedIndex="0" Loaded="UDP_Target_ip_Loaded" Margin="20,0,0,0"> |
61 | | - <Label>224.0.0.0</Label> |
62 | | - </ComboBox> |
63 | | - </Grid> |
64 | | - <Button Name="UDP_button" Grid.Row="3" Margin="20,5" Click="Open_Button_Click" FontSize="16">Open</Button> |
65 | | - <Grid Grid.Row="4"> |
66 | | - <Grid.RowDefinitions> |
67 | | - <RowDefinition Height="1*"></RowDefinition> |
68 | | - <RowDefinition Height="1*"></RowDefinition> |
69 | | - </Grid.RowDefinitions> |
70 | | - <Label Grid.Row="0">Target IP</Label> |
71 | | - <ComboBox Grid.Row="1" IsEditable="True" Name="UDP_Target_ip" SelectedIndex="0" Loaded="UDP_Target_ip_Loaded"> |
72 | | - <Label Name="UDP_Target_ip_localhost" ToolTip="127.0.0.1">localhost</Label> |
73 | | - <Label Name="UDP_Target_ip_broadcast" ToolTip="255.255.255.255">broadcast</Label> |
74 | | - </ComboBox> |
75 | | - </Grid> |
76 | | - <Grid Grid.Row="5"> |
77 | | - <Grid.RowDefinitions> |
78 | | - <RowDefinition Height="1*"></RowDefinition> |
79 | | - <RowDefinition Height="1*"></RowDefinition> |
80 | | - </Grid.RowDefinitions> |
81 | | - <Label Grid.Row="0">Target Port</Label> |
82 | | - <TextBox Grid.Row="1" Name="UDP_Target_port">12345</TextBox> |
83 | | - </Grid> |
84 | | - </Grid> |
85 | | - </TabItem> |
86 | | - <TabItem Name="Tab_Custom" Header="Custom"> |
87 | | - |
88 | | - </TabItem> |
89 | | - </TabControl> |
90 | | - </Grid> |
91 | | - <Grid Grid.Column="1"> |
92 | | - <Grid.RowDefinitions> |
93 | | - <RowDefinition Height="1*"></RowDefinition> |
94 | | - <RowDefinition Height="60"></RowDefinition> |
95 | | - </Grid.RowDefinitions> |
96 | | - <RichTextBox Grid.Row="0" Name="MsgBox" Margin="10,0,0,0" VerticalScrollBarVisibility="Auto" FontFamily="Consolas, Fira Code Light" IsReadOnly="True" Loaded="MsgBox_Loaded"/> |
97 | | - <Grid Grid.Row="1" Margin="10,5,0,0"> |
98 | | - <Grid.ColumnDefinitions> |
99 | | - <ColumnDefinition Width="50"></ColumnDefinition> |
100 | | - <ColumnDefinition Width="1*"></ColumnDefinition> |
101 | | - <ColumnDefinition Width="0.25*" MinWidth="50" MaxWidth="120"></ColumnDefinition> |
102 | | - </Grid.ColumnDefinitions> |
103 | | - <Grid Grid.Column="0"> |
104 | | - <Grid.RowDefinitions> |
105 | | - <RowDefinition Height="1*"></RowDefinition> |
106 | | - <RowDefinition Height="1*"></RowDefinition> |
107 | | - </Grid.RowDefinitions> |
108 | | - <Button Grid.Row="0" Click="Clear_Button_Click" Margin="0,0,0,2.5">Clear↑</Button> |
109 | | - <Button Grid.Row="1" Click="Clear_Send_Button_Click" Margin="0,2.5,0,0">Clear→</Button> |
110 | | - </Grid> |
111 | | - <RichTextBox Name="Send_Msg" Grid.Column="1" Margin="5,0" Keyboard.KeyUp="Send_Msg_KeyUp"/> |
112 | | - <Button Name="Send_Button" Grid.Column="2" Click="Send_Button_Click" IsEnabled="False" FontSize="20">Send</Button> |
113 | | - </Grid> |
114 | | - </Grid> |
115 | | - |
| 8 | + Title="Net Debug" Height="450" Width="800" MinHeight="250" MinWidth="600" FontFamily="Consolas, Fira Code"> |
| 9 | + <Grid> |
| 10 | + <local:Udp></local:Udp> |
116 | 11 | </Grid> |
117 | 12 | </Window> |
0 commit comments