《Modbus学习套件测试程序》开发过程讲解

发布时间 2023-11-10 23:05:14作者: 平常xin

1.项目创建

    vs2022

   .NET Framework 4.5/4.6/4.7/4.72/4.8

   .NET Core 3.x

   .NET 5/6/7

 

 

<Window x:Class="ModbusTest.MainWindow"
        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:ModbusTest" 
        mc:Ignorable="d" 
        WindowStartupLocation="CenterScreen"  FontSize="12" FontFamily="Microsoft YaHei"
        ResizeMode="NoResize" FontWeight="ExtraLight"
        Title="ModbusRTU学习套件测试程序" Height="650" Width="1200">
    <WindowChrome.WindowChrome>
        <WindowChrome GlassFrameThickness="1" CaptionHeight="50"/>
    </WindowChrome.WindowChrome>
    <Grid> 
        
    </Grid>
</Window>

 

1.窗口处理

2.布局

3.控件调整

4.自定义控件

5.第三方控件