<pu:WindowX x:Class="Plugin.ModelManage.DataModal"
|
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.ModelManage"
|
xmlns:pw="https://opensource.panuon.com/wpf"
|
xmlns:pu="https://opensource.panuon.com/wpf-ui"
|
xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"
|
xmlns:pde="clr-namespace:Plugin.ModelManage.Entity"
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
mc:Ignorable="d"
|
Title="Form"
|
SizeToContent="Height"
|
Width="600"
|
WindowStartupLocation="CenterOwner"
|
Style="{StaticResource ModalWindow}">
|
<Window.Resources>
|
<!--<ObjectDataProvider x:Key="enumValues"
|
MethodName="GetValues"
|
ObjectType="{x:Type sys:Enum}">
|
<ObjectDataProvider.MethodParameters>
|
<x:Type TypeName="pde:ControlType"/>
|
</ObjectDataProvider.MethodParameters>
|
</ObjectDataProvider>
|
|
<ObjectDataProvider x:Key="dioType"
|
MethodName="GetValues"
|
ObjectType="{x:Type sys:Enum}">
|
<ObjectDataProvider.MethodParameters>
|
<x:Type TypeName="pde:DIOType"/>
|
</ObjectDataProvider.MethodParameters>
|
</ObjectDataProvider>-->
|
</Window.Resources>
|
<Grid Margin="10">
|
<StackPanel x:Name="formPanel">
|
<pu:FormGroup x:Name="FgModel"
|
Header="型号"
|
Style="{StaticResource InputFormGroupStyle}"
|
dp:FormGroupHelper.IsRequired="True"
|
dp:FormGroupHelper.ValidateMethod="ValidateModel"
|
GroupName="MyFormGroup">
|
<TextBox x:Name="TbModel" Style="{StaticResource EditorTextBoxStyle}" />
|
</pu:FormGroup>
|
|
<pu:FormGroup x:Name="FgCodeLength" Header="条码长度"
|
Style="{StaticResource InputFormGroupStyle}"
|
dp:FormGroupHelper.IsRequired="True"
|
GroupName="MyFormGroup">
|
<pu:NumberInput x:Name="NiCodeLength" Style="{StaticResource FormNumberInput}" />
|
</pu:FormGroup>
|
|
<pu:FormGroup x:Name="FgStartIndex" Header="起始下标"
|
Style="{StaticResource InputFormGroupStyle}"
|
dp:FormGroupHelper.IsRequired="True"
|
GroupName="MyFormGroup">
|
<pu:NumberInput x:Name="NiStartIndex" Style="{StaticResource FormNumberInput}" />
|
</pu:FormGroup>
|
|
<!--<pu:FormGroup x:Name="FgLength" Header="截取长度"
|
Style="{StaticResource InputFormGroupStyle}"
|
dp:FormGroupHelper.IsRequired="True"
|
GroupName="MyFormGroup">
|
<pu:NumberInput x:Name="NiLength" Style="{StaticResource FormNumberInput}" />
|
</pu:FormGroup>-->
|
|
<pu:FormGroup x:Name="FgFixcode"
|
Header="固定码"
|
Style="{StaticResource InputFormGroupStyle}"
|
dp:FormGroupHelper.IsRequired="True"
|
dp:FormGroupHelper.ValidateMethod="ValidateFixcode"
|
GroupName="MyFormGroup">
|
<TextBox x:Name="TbFixcode" Style="{StaticResource EditorTextBoxStyle}" />
|
</pu:FormGroup>
|
</StackPanel>
|
</Grid>
|
</pu:WindowX>
|