Advertisement

基于UDP协议的Windows Presentation Foundation(WPF)socket通信技术

阅读量:

直接提供代码示例:

xmal:

复制代码
 <Window x:Class="UDPSocket.MainWindow"

    
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    
     Title="MainWindow" Height="600" Width="800"  WindowStartupLocation="CenterScreen" Closing="MainWindow_Closing">
    
     <Grid>
    
     <GroupBox Header="发送数据" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="380" Height="545" Background="AliceBlue">
    
         <StackPanel>
    
             <RichTextBox Name="txtSendMssg" HorizontalAlignment="Left" 

全部评论 (0)

还没有任何评论哟~