123456789101112131415161718192021222324252627282930 |
- <UserControl x:Class="MV485.uc.UCMonitorData"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:MV485.uc"
- mc:Ignorable="d"
- Padding="5 2 5 5"
- Background="WhiteSmoke"
- Unloaded="UserControl_Unloaded"
- d:DesignHeight="450" d:DesignWidth="800">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal" Margin="10 0" VerticalAlignment="Center">
- <Button x:Name="btnStartMonitor" Content="开始监听" Padding="10 0 10 0" Height="28" FontSize="14px" Click="BtnStartMonitor_Click" />
- <ComboBox x:Name="cmbAddress" Margin="10 0 10 0" FontSize="14px" Width="80"
- IsEditable="True" PreviewTextInput="TextBox_PreviewTextInput"/>
- <Button x:Name="btnSetAddress" Content="设置模块地址" Padding="10 0 10 0" Height="28" FontSize="14px" Click="BtnSetAddress_Click" />
- <TextBlock x:Name ="txtComStauts" Text="串口状态" FontSize="14" VerticalAlignment="Center" Margin="10 0 0 0" />
- <Button x:Name="btnGetPortNames" Content="获取串口列表" Margin="10 0 0 0" Padding="10 0 10 0"
- Height="28" FontSize="14px" Click="BtnGetPortNames_Click" />
- </StackPanel>
- <DataGrid x:Name="DevicesDataGrid" Grid.Row="1" AutoGenerateColumns="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
- </Grid>
- </UserControl>
|