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

29 lines
1.6 KiB
XML

<Window x:Class="SocketExample.ClientWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SocketExample"
mc:Ignorable="d"
Title="ClientWindow" Height="450" Width="800">
<Grid>
<StackPanel x:Name="InformationPanel" Margin="0,72,400,10" >
<TextBlock x:Name="InfoTextBlock_Client" TextWrapping="Wrap" Text="" Height="352"/>
</StackPanel>
<StackPanel Margin="0,0,0,375" Orientation="Horizontal">
<Label Content="IP地址" Height="30" Margin="40 8 10 0"/>
<TextBox TextWrapping="Wrap" x:Name="IPtextbox" Text="127.0.0.1" Width="200" Height="30" Margin="0 8 10 0"/>
<Label Content="端口号" Height="30" Margin="40 8 10 0"/>
<TextBox TextWrapping="Wrap" Text="8999" x:Name="Porttextbox" Width="200" Height="30" Margin="0 8 10 0"/>
<Button Content="链接" Height="30" Margin="30 8 10 0" Click="Button_Click"/>
<Button Content="清空" Height="30" Margin="30 8 10 0"/>
</StackPanel>
<StackPanel Margin="400,72,0,10">
<TextBox TextWrapping="Wrap" x:Name="MessageTextBox_Client" Text="请输入需要发送的内容" Width="250" Height="100" Margin="10,72,0,10"/>
<Button Content="发送" Margin="10,20,0,10" Width="250" Click="Button_Click_Send" />
</StackPanel>
</Grid>
</Window>