| | |
| | | xmlns:local="clr-namespace:Plugin.DOControl" |
| | | 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:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI" |
| | | xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| | | xmlns:ety="clr-namespace:Plugin.DOControl.Entity" |
| | | 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="ety:ControlType"/> |
| | | </ObjectDataProvider.MethodParameters> |
| | | </ObjectDataProvider> |
| | | </Window.Resources> |
| | | <Grid Margin="10"> |
| | | <StackPanel x:Name="formPanel"> |
| | | <pu:FormGroup x:Name="FgGroup" |
| | |
| | | Style="{StaticResource InputFormGroupStyle}" |
| | | dp:FormGroupHelper.IsRequired="True" |
| | | GroupName="MyFormGroup"> |
| | | <ComboBox x:Name="CbControlType" Style="{StaticResource FormComboxStyle}" SelectedValuePath="Content"> |
| | | <ComboBoxItem>0</ComboBoxItem> |
| | | <ComboBox x:Name="CbControlType" Style="{StaticResource FormComboxStyle}" |
| | | ItemsSource="{Binding Source={StaticResource enumValues}}" |
| | | SelectedValuePath="Content"> |
| | | <!--<ComboBoxItem>0</ComboBoxItem> |
| | | <ComboBoxItem>1</ComboBoxItem> |
| | | <ComboBoxItem>2</ComboBoxItem> |
| | | <ComboBoxItem>3</ComboBoxItem> |
| | | <ComboBoxItem>4</ComboBoxItem> |
| | | <ComboBoxItem>4</ComboBoxItem> |
| | | <ComboBoxItem>5</ComboBoxItem> |
| | | <ComboBoxItem>6</ComboBoxItem> |
| | | <ComboBoxItem>7</ComboBoxItem> |
| | | <ComboBoxItem>7</ComboBoxItem>--> |
| | | </ComboBox> |
| | | </pu:FormGroup> |
| | | </StackPanel> |