| | |
| | | SizeToContent="Height" |
| | | Width="600" |
| | | WindowStartupLocation="CenterOwner" |
| | | BorderBrush="#3E3E45" |
| | | BorderThickness="1" |
| | | Foreground="Black" |
| | | pu:WindowXCaption.Background="{StaticResource PrimaryColor}" |
| | | 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"> |
| | | Style="{StaticResource ModalWindow}" |
| | | pu:WindowXModalDialog.OKButtonContent= |
| | | "{Binding Converter={StaticResource lc},ConverterParameter='App.Save'}"> |
| | | <Grid Margin="10"> |
| | | <StackPanel x:Name="formPanel"> |
| | | <pu:FormGroup x:Name="FgProductName" dp:FormGroupHelper.IsRequired="True" |
| | | Header="产品名称" GroupName="MyFormGroup"> |
| | | <pu:FormGroup x:Name="FgProductName" |
| | | Header="{DynamicResource Pm.Product.Name}" |
| | | dp:FormGroupHelper.IsRequired="True" |
| | | GroupName="MyFormGroup"> |
| | | <TextBox x:Name="TbProductName" IsReadOnly="True" Style="{StaticResource EditorTextBoxStyle}" /> |
| | | </pu:FormGroup> |
| | | |
| | | <pu:FormGroup x:Name="FgName" dp:FormGroupHelper.IsRequired="True" |
| | | <pu:FormGroup x:Name="FgName" |
| | | dp:FormGroupHelper.ValidateMethod="ValidateName" |
| | | Header="参数名称" GroupName="MyFormGroup"> |
| | | Header="{DynamicResource Pm.Parameter.Name}" |
| | | dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup"> |
| | | <TextBox x:Name="TbName" Style="{StaticResource EditorTextBoxStyle}" /> |
| | | </pu:FormGroup> |
| | | |
| | | <pu:FormGroup x:Name="FgType" |
| | | Header="{DynamicResource Pm.Parameter.Type}" |
| | | dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup"> |
| | | <ComboBox x:Name="CbType" Style="{StaticResource FormComboxStyle}" |
| | | SelectionChanged="CbType_SelectionChanged" |
| | | SelectedValuePath="Content"> |
| | | <ComboBoxItem>Int</ComboBoxItem> |
| | | <ComboBoxItem>Double</ComboBoxItem> |
| | | <ComboBoxItem>Bool</ComboBoxItem> |
| | | <ComboBoxItem>String</ComboBoxItem> |
| | | </ComboBox> |
| | | </pu:FormGroup> |
| | | |
| | | <pu:FormGroup x:Name="FgValue" Style="{StaticResource RequiredInputFormGroupStyle}" |
| | | dp:FormGroupHelper.IsRequired="True" |
| | | Header="参数值" GroupName="MyFormGroup"> |
| | | <TextBox x:Name="TbValue" Style="{StaticResource EditorTextBoxStyle}" /> |
| | | Header="{DynamicResource Pm.Parameter.Value}" |
| | | dp:FormGroupHelper.IsRequired="True" GroupName="MyFormGroup"> |
| | | <Grid> |
| | | <ComboBox x:Name="CbBoolValue" Style="{StaticResource FormComboxStyle}" |
| | | Visibility="Collapsed" |
| | | SelectedValuePath="Content"> |
| | | <ComboBoxItem>True</ComboBoxItem> |
| | | <ComboBoxItem>False</ComboBoxItem> |
| | | </ComboBox> |
| | | <ui:NumberInput x:Name="NiNumberValue" Visibility="Collapsed" Style="{StaticResource EditorTextBoxStyle}"/> |
| | | <Grid x:Name="StringValueGrid"> |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition/> |
| | | <ColumnDefinition Width="Auto"/> |
| | | </Grid.ColumnDefinitions> |
| | | <TextBox x:Name="TbStringValue" Style="{StaticResource EditorTextBoxStyle}"/> |
| | | <Button Grid.Column="1" Click="Button_Click" Style="{StaticResource SearchButton}"/> |
| | | </Grid> |
| | | </Grid> |
| | | </pu:FormGroup> |
| | | |
| | | <pu:FormGroup x:Name="FgUnit" Style="{StaticResource InputFormGroupStyle}" |
| | | Header="单位" GroupName="MyFormGroup"> |
| | | Header="{DynamicResource Pm.Parameter.Unit}" |
| | | dp:FormGroupHelper.IsRequired="False" GroupName="MyFormGroup"> |
| | | <TextBox x:Name="TbUnit" Style="{StaticResource EditorTextBoxStyle}" /> |
| | | </pu:FormGroup> |
| | | |
| | | <pu:FormGroup x:Name="FgDescription" Style="{StaticResource InputFormGroupStyle}" |
| | | Header="描述" GroupName="MyFormGroup"> |
| | | Header="{DynamicResource Pm.Parameter.Desc}" |
| | | dp:FormGroupHelper.IsRequired="False" 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}" /> |
| | | Header="{DynamicResource Pm.Parameter.Group}" |
| | | dp:FormGroupHelper.IsRequired="False" GroupName="MyFormGroup"> |
| | | <!--<TextBox x:Name="TbPGroup" Style="{StaticResource EditorTextBoxStyle}" />--> |
| | | <ComboBox x:Name="CbGroup" IsEditable="True" Style="{StaticResource FormComboxStyle}"/> |
| | | </pu:FormGroup> |
| | | </StackPanel> |
| | | </Grid> |