alielie
2025-05-20 99df058a665ea04065a23e729ec79a2f23f79881
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
28
29
30
31
32
33
34
<pu:WindowX x:Class="Plugin.ServoManage.ServoProductModal"
            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:Plugin.ServoManage"
            xmlns:pw="https://opensource.panuon.com/wpf"
            xmlns:pu="https://opensource.panuon.com/wpf-ui"
            xmlns:uic="clr-namespace:HMI.UI.Converter;assembly=HMI.UI"
            xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"
            mc:Ignorable="d"
            Title="Form"
            SizeToContent="Height"
            Width="600"
            WindowStartupLocation="CenterOwner"
            Style="{StaticResource ModalWindow}">
    <Grid Margin="10">
        <StackPanel x:Name="formPanel">
            <pu:FormGroup x:Name="FgModel" Style="{StaticResource InputFormGroupStyle}" 
                          Header="{DynamicResource svo.product.model}"
                         dp:FormGroupHelper.ValidateMethod="ValidateModel"
                          dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
                <TextBox x:Name="TbModel" Style="{StaticResource EditorTextBoxStyle}" />
            </pu:FormGroup>
 
            <pu:FormGroup x:Name="FgProgramCode" Style="{StaticResource InputFormGroupStyle}"
                         dp:FormGroupHelper.ValidateMethod="ValidateProgramCode"
                         Header="{DynamicResource svo.product.programCode}" 
                         dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup">
                <pu:NumberInput x:Name="NiProgramCode" Style="{StaticResource FormNumberInput}" />
            </pu:FormGroup>
        </StackPanel>
    </Grid>
</pu:WindowX>