<pu:WindowX x:Class="HMI.ParameterManage.ParameterModal"
|
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:HMI.ParameterManage"
|
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:ui="clr-namespace:HMI.UI;assembly=HMI.UI"
|
mc:Ignorable="d"
|
Title="Form"
|
SizeToContent="Height"
|
Width="600"
|
WindowStartupLocation="CenterOwner"
|
BorderBrush="#3E3E45"
|
BorderThickness="1"
|
Foreground="Black"
|
pu:WindowXCaption.Background="{StaticResource MainBorder}"
|
pu:WindowXModalDialog.ButtonStyle="{StaticResource ModalButton}"
|
pu:WindowXCaption.Foreground="#FFF"
|
pu:WindowXCaption.Buttons="Close"
|
pu:WindowXModalDialog.Buttons="OKCancel"
|
pu:WindowXModalDialog.CancelButtonContent="取消"
|
pu:WindowXModalDialog.OKButtonContent="保存"
|
pu:WindowXModalDialog.ButtonPanelMargin="0,30,10,10">
|
<Grid Margin="10">
|
<StackPanel x:Name="formPanel">
|
<pu:FormGroup x:Name="FgProductName" ui:FormGroupHelper.IsRequired="True"
|
Header="产品名称" GroupName="MyFormGroup">
|
<TextBox x:Name="TbProductName" IsReadOnly="True" Style="{StaticResource EditorTextBoxStyle}" />
|
</pu:FormGroup>
|
|
<pu:FormGroup x:Name="FgName" ui:FormGroupHelper.IsRequired="True"
|
ui:FormGroupHelper.ValidateMethod="ValidateName"
|
Header="参数名称" GroupName="MyFormGroup">
|
<TextBox x:Name="TbName" Style="{StaticResource EditorTextBoxStyle}" />
|
</pu:FormGroup>
|
|
<pu:FormGroup x:Name="FgValue" Style="{StaticResource RequiredInputFormGroupStyle}"
|
ui:FormGroupHelper.IsRequired="True"
|
Header="参数值" GroupName="MyFormGroup">
|
<TextBox x:Name="TbValue" Style="{StaticResource EditorTextBoxStyle}" />
|
</pu:FormGroup>
|
|
<pu:FormGroup x:Name="FgUnit" Style="{StaticResource InputFormGroupStyle}"
|
Header="单位" GroupName="MyFormGroup">
|
<TextBox x:Name="TbUnit" Style="{StaticResource EditorTextBoxStyle}" />
|
</pu:FormGroup>
|
|
<pu:FormGroup x:Name="FgDescription" Style="{StaticResource InputFormGroupStyle}"
|
Header="描述" GroupName="MyFormGroup">
|
<TextBox x:Name="TbDescription" Style="{StaticResource MultilineEditorTextBoxStyle}" />
|
</pu:FormGroup>
|
|
<pu:FormGroup x:Name="FgPGroup" Style="{StaticResource InputFormGroupStyle}"
|
Header="组" GroupName="MyFormGroup">
|
<TextBox x:Name="TbPGroup" Style="{StaticResource EditorTextBoxStyle}" />
|
</pu:FormGroup>
|
</StackPanel>
|
</Grid>
|
</pu:WindowX>
|