alielie
2025-03-28 dedcf4174c8540ee3a912daad2ff13e014e495b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<UserControl x:Class="HMI.AlarmInfoManage.AlarmInfoManage_SettingA"
             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:HMI.AlarmInfoManage"
            xmlns:pw="https://opensource.panuon.com/wpf"
            xmlns:pu="https://opensource.panuon.com/wpf-ui"
             Loaded="UserControl_Loaded"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
        <StackPanel>
            <GroupBox Header="PLC设置">
                <StackPanel>
                    <pu:FormGroup Header="PLC IP" GroupName="MyFormGroup">
                        <TextBox Text="{Binding PlcIp}"/>
                    </pu:FormGroup>
 
                    <pu:FormGroup Header="启用PLC" GroupName="MyFormGroup">
                        <CheckBox IsChecked="{Binding PlcEnabled,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
                    </pu:FormGroup>
                </StackPanel>
            </GroupBox>
        </StackPanel>
    </Grid>
</UserControl>