Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/290.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# XAML:禁用容器中的所有元素,但不滚动_C#_Wpf_Xaml_Layout_Scroll - Fatal编程技术网

C# XAML:禁用容器中的所有元素,但不滚动

C# XAML:禁用容器中的所有元素,但不滚动,c#,wpf,xaml,layout,scroll,C#,Wpf,Xaml,Layout,Scroll,我有这个devExpress xaml元素(但questin是通用的,我认为它适合其他无devExpress的情况): 如您所见,我使用绑定bool将layoutControl设置为启用/禁用。所有的文本字段在必要时被正确地禁用,但它也禁用了滚动(字段很多,我需要一个滚动来查看它们) 我想禁用所有输入,但保留滚动功能。我怎么做?我还尝试了IsManipulationEnabled属性,但它似乎没有任何作用 这是我如何定义滚动条的: <ScrollViewer x:Name="scrol

我有这个devExpress xaml元素(但questin是通用的,我认为它适合其他无devExpress的情况):


如您所见,我使用绑定bool将layoutControl设置为启用/禁用。所有的文本字段在必要时被正确地禁用,但它也禁用了滚动(字段很多,我需要一个滚动来查看它们)

我想禁用所有输入,但保留滚动功能。我怎么做?我还尝试了IsManipulationEnabled属性,但它似乎没有任何作用

这是我如何定义滚动条的:

<ScrollViewer x:Name="scrollViewer" VerticalScrollBarVisibility="Auto" Width="Auto" Height="Auto">

显然,容器位于scrollViewer标记内。我如何解决我的问题

这是我的xaml:

<ScrollViewer x:Name="scrollViewer" VerticalScrollBarVisibility="Auto" Width="Auto" Height="Auto">
    <Grid  x:Name="ext" Height="336">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="37"  />
                <RowDefinition  />
            </Grid.RowDefinitions>
            <dxe:SearchControl x:Name="searchControl" FilterCondition="Contains" FilterByColumnsMode="Custom" Margin="10,0" >
                <dxe:SearchControl.ColumnProvider>
                    <dxe:SelectorEditColumnProvider>
                        <dxe:SelectorEditColumnProvider.CustomColumns>
                            <sys:String>CODICE</sys:String>
                            <sys:String>NOME</sys:String>
                        </dxe:SelectorEditColumnProvider.CustomColumns>
                    </dxe:SelectorEditColumnProvider>
                </dxe:SearchControl.ColumnProvider>
            </dxe:SearchControl>

            <DockPanel Grid.Row="1" Margin="0,60,0,0">

                <dxg:GridControl x:Name="lst1" ItemsSource="{Binding ListaImpianti}"  EnableSmartColumnsGeneration="True" 
                    FilterCriteria="{Binding FilterCriteria, ElementName=searchControl}"  MaxHeight="500" Height="266" 
                                 VerticalAlignment="Top" Margin="0,-27,0,0" ShowBorder="False" SelectedItem="{Binding SelectedTabImpianti}">
                    <dxg:GridControl.Columns>
                        <dxg:GridColumn x:Name="CODICE" Binding="{Binding CODICE}" FieldName="{DynamicResource ResourceKey=Codice}"/>
                        <dxg:GridColumn x:Name="NOME" Binding="{Binding NOME}" FieldName="{DynamicResource ResourceKey=Nome}"/>

                    </dxg:GridControl.Columns>
                    <dxg:GridControl.View>
                        <dxg:TableView AllowPerPixelScrolling="True" AllowEditing="False" ShowGroupPanel="False" ShowFilterPanelMode="Never"  />
                    </dxg:GridControl.View>
                </dxg:GridControl>
            </DockPanel>
        </Grid>

        <dxlc:LayoutControl Grid.Column="1" Orientation="Vertical" UseLayoutRounding="True" DataContext="{Binding SelectedItem, ElementName=lst1}" Margin="0,10,0,0">
            <dxlc:LayoutGroup Header="{DynamicResource ResourceKey=infogen}" View="GroupBox" Orientation="Vertical" 
                    IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window},Path=DataContext.canEditImpianti}" >
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Codice}">
                    <dxe:TextEdit EditValue="{Binding CODICE, UpdateSourceTrigger=PropertyChanged}" MaxLength="10" MaskType="RegEx" Mask="[0-9A-Za-z]{1,10}" 
                                  NullText="{DynamicResource ResourceKey=obbligatorio}" />
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Descrizione}">
                    <dxe:TextEdit EditValue="{Binding NOME, UpdateSourceTrigger=PropertyChanged}" MaxLength="20" MaskType="RegEx" Mask="[0-9A-Za-z ]{1,20}" 
                                  NullText="{DynamicResource ResourceKey=obbligatorio}"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Citta}">
                    <dxe:TextEdit EditValue="{Binding LOCALITA, UpdateSourceTrigger=PropertyChanged}" MaxLength="30"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Indirizzo}">
                    <dxe:TextEdit EditValue="{Binding INDIRIZZO, UpdateSourceTrigger=PropertyChanged}" MaxLength="30"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=CAP}">
                    <dxe:TextEdit EditValue="{Binding CAP, UpdateSourceTrigger=PropertyChanged}" MaskType="RegEx" Mask="[0-9]{5}"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=IVA}">
                    <dxe:TextEdit EditValue="{Binding PIVA, UpdateSourceTrigger=PropertyChanged}" MaxLength="16"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Telefono}">
                    <dxe:TextEdit EditValue="{Binding TELEFONO, UpdateSourceTrigger=PropertyChanged}" MaskType="Numeric" MaxLength="18"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Responsabile}">
                    <dxe:TextEdit EditValue="{Binding RESPONSABILE, UpdateSourceTrigger=PropertyChanged}" MaxLength="20"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="E-Mail">
                    <dxe:TextEdit EditValue="{Binding EMAILS, UpdateSourceTrigger=PropertyChanged}"
                                  MaskType="RegEx" Mask="[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}"/>
                </dxlc:LayoutItem>
            </dxlc:LayoutGroup>

            <dxlc:LayoutGroup Header="{DynamicResource ResourceKey=ConfTecnica}" View="GroupBox" Orientation="Vertical"
                              IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window},Path=DataContext.canEditImpianti}" >
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=TipoSistema}">
                    <dxe:ComboBoxEdit IsTextEditable="False" EditValue="{Binding IDTTS, UpdateSourceTrigger=PropertyChanged}" 
                                      ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window},Path=DataContext.tts}"  />
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Locazione}">
                    <StackPanel Margin="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                        <RadioButton Content="{DynamicResource Locale}" Margin="10,0,0,0" x:Name="rd_LOCALE" VerticalAlignment="Center"  
                                     IsChecked="{Binding REMOTO,  UpdateSourceTrigger=PropertyChanged,Converter={StaticResource InverseBooleanConverter}}" GroupName="LocationL" Panel.ZIndex="9" TabIndex="10" />
                        <RadioButton Content="{DynamicResource Remoto}" Margin="10,0,6,0" x:Name="rd_REMOTO" VerticalAlignment="Center" 
                                     IsChecked="{Binding REMOTO}" GroupName="LocationR" Panel.ZIndex="10" TabIndex="11" Tag="PRISMA"/>
                    </StackPanel>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=TipoConnessione}">
                    <StackPanel Margin="0" Orientation="Horizontal" VerticalAlignment="Center">
                        <RadioButton x:Name="rd_TIPOCONN" Content="{DynamicResource Terminale}" Margin="10,0,0,0" Tag="PRISMA" VerticalAlignment="Center" GroupName="TipoConnT" 
                                     IsChecked="{Binding TIPOCONN, Converter={StaticResource InverseBooleanConverter}, UpdateSourceTrigger=PropertyChanged}" Panel.ZIndex="11" TabIndex="12" />
                        <RadioButton x:Name="rd_SLAVE" Content="Slave" Margin="10,0,6,0" Tag="PRISMA" VerticalAlignment="Center" GroupName="TipoConnS" 
                                     IsChecked="{Binding TIPOCONN}" Panel.ZIndex="12" TabIndex="13" />
                    </StackPanel>
                </dxlc:LayoutItem>
            </dxlc:LayoutGroup>

            <dxlc:LayoutGroup Header="{DynamicResource ResourceKey=CentralinaSTK}" View="GroupBox" Orientation="Vertical"
                              IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window},Path=DataContext.canEditImpianti}" >
                <dxlc:LayoutItem >
                    <StackPanel DockPanel.Dock="Top" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,6">
                        <RadioButton x:Name="rd_sermatic" Content="{DynamicResource SI}" Margin="10,0,0,0"  Tag="PRISMA" VerticalAlignment="Center" Width="100" 
                                     HorizontalAlignment="Left" IsChecked="{Binding SERMATIC, UpdateSourceTrigger=PropertyChanged}" GroupName="stkS" Panel.ZIndex="13" TabIndex="14" />
                        <RadioButton x:Name="rd_sermaticNO" Content="{DynamicResource NO}" Margin="10,0,0,0" Tag="PRISMA" VerticalAlignment="Center" Width="100" 
                                     HorizontalAlignment="Left" IsChecked="{Binding SERMATIC, Converter={StaticResource InverseBooleanConverter}, UpdateSourceTrigger=PropertyChanged}" GroupName="stkN" 
                                     Panel.ZIndex="14" TabIndex="15" />
                    </StackPanel>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem >
                    <!--<dxe:ComboBoxEdit  EditValue="{Binding SERMATICCOM}"/>-->
                    <UniformGrid Rows="1" Columns="2" DockPanel.Dock="Top" Margin="4,0,4,4" IsEnabled="{Binding IsChecked, ElementName=rd_sermatic, UpdateSourceTrigger=PropertyChanged}">
                        <TextBlock Margin="0" TextWrapping="Wrap" Text="{DynamicResource PortaCOM}" TextAlignment="Right" VerticalAlignment="Center" HorizontalAlignment="Right"/>
                        <dxe:ComboBoxEdit IsTextEditable="False" EditValue="{Binding SERMATICCOM, UpdateSourceTrigger=PropertyChanged}" >
                            <dxe:ComboBoxEdit.Items>
                                <dxe:ComboBoxEditItem Content="COM1"/>
                                <dxe:ComboBoxEditItem Content="COM2"/>
                                <dxe:ComboBoxEditItem Content="COM3"/>
                                <dxe:ComboBoxEditItem Content="COM4"/>
                                <dxe:ComboBoxEditItem Content="COM5"/>
                                <dxe:ComboBoxEditItem Content="COM6"/>
                                <dxe:ComboBoxEditItem Content="COM7"/>
                                <dxe:ComboBoxEditItem Content="COM8"/>
                            </dxe:ComboBoxEdit.Items>
                        </dxe:ComboBoxEdit>
                    </UniformGrid>
                </dxlc:LayoutItem>
            </dxlc:LayoutGroup>
        </dxlc:LayoutControl>
    </Grid>
</ScrollViewer>

鳕鱼
诺姆

我只是禁用了内部布局组。它可以工作。

ScrollViewer
内部的
dxlc:LayoutControl
?如果是,你不能把它放在
dxlc:LayoutControl
?@dkozl它已经在外面了,我已经用所有涉及的xaml更新了questin。我不能用
LayoutControl
测试它,但我刚刚把大的、禁用的
DataGrid
放在
ScrollViewer
中,它可以滚动。您确定ScrollViewer上的任何内容都未被禁用吗?@dkozl是。。。我不能这样做,因为我需要网格的左侧部分保持活动状态。如果滚动查看器包含在要禁用的控件中,它将始终被禁用。没办法。您必须将禁用的控件放置在启用的滚动查看器中,它才能工作。
<ScrollViewer x:Name="scrollViewer" VerticalScrollBarVisibility="Auto" Width="Auto" Height="Auto">
    <Grid  x:Name="ext" Height="336">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="37"  />
                <RowDefinition  />
            </Grid.RowDefinitions>
            <dxe:SearchControl x:Name="searchControl" FilterCondition="Contains" FilterByColumnsMode="Custom" Margin="10,0" >
                <dxe:SearchControl.ColumnProvider>
                    <dxe:SelectorEditColumnProvider>
                        <dxe:SelectorEditColumnProvider.CustomColumns>
                            <sys:String>CODICE</sys:String>
                            <sys:String>NOME</sys:String>
                        </dxe:SelectorEditColumnProvider.CustomColumns>
                    </dxe:SelectorEditColumnProvider>
                </dxe:SearchControl.ColumnProvider>
            </dxe:SearchControl>

            <DockPanel Grid.Row="1" Margin="0,60,0,0">

                <dxg:GridControl x:Name="lst1" ItemsSource="{Binding ListaImpianti}"  EnableSmartColumnsGeneration="True" 
                    FilterCriteria="{Binding FilterCriteria, ElementName=searchControl}"  MaxHeight="500" Height="266" 
                                 VerticalAlignment="Top" Margin="0,-27,0,0" ShowBorder="False" SelectedItem="{Binding SelectedTabImpianti}">
                    <dxg:GridControl.Columns>
                        <dxg:GridColumn x:Name="CODICE" Binding="{Binding CODICE}" FieldName="{DynamicResource ResourceKey=Codice}"/>
                        <dxg:GridColumn x:Name="NOME" Binding="{Binding NOME}" FieldName="{DynamicResource ResourceKey=Nome}"/>

                    </dxg:GridControl.Columns>
                    <dxg:GridControl.View>
                        <dxg:TableView AllowPerPixelScrolling="True" AllowEditing="False" ShowGroupPanel="False" ShowFilterPanelMode="Never"  />
                    </dxg:GridControl.View>
                </dxg:GridControl>
            </DockPanel>
        </Grid>

        <dxlc:LayoutControl Grid.Column="1" Orientation="Vertical" UseLayoutRounding="True" DataContext="{Binding SelectedItem, ElementName=lst1}" Margin="0,10,0,0">
            <dxlc:LayoutGroup Header="{DynamicResource ResourceKey=infogen}" View="GroupBox" Orientation="Vertical" 
                    IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window},Path=DataContext.canEditImpianti}" >
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Codice}">
                    <dxe:TextEdit EditValue="{Binding CODICE, UpdateSourceTrigger=PropertyChanged}" MaxLength="10" MaskType="RegEx" Mask="[0-9A-Za-z]{1,10}" 
                                  NullText="{DynamicResource ResourceKey=obbligatorio}" />
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Descrizione}">
                    <dxe:TextEdit EditValue="{Binding NOME, UpdateSourceTrigger=PropertyChanged}" MaxLength="20" MaskType="RegEx" Mask="[0-9A-Za-z ]{1,20}" 
                                  NullText="{DynamicResource ResourceKey=obbligatorio}"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Citta}">
                    <dxe:TextEdit EditValue="{Binding LOCALITA, UpdateSourceTrigger=PropertyChanged}" MaxLength="30"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Indirizzo}">
                    <dxe:TextEdit EditValue="{Binding INDIRIZZO, UpdateSourceTrigger=PropertyChanged}" MaxLength="30"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=CAP}">
                    <dxe:TextEdit EditValue="{Binding CAP, UpdateSourceTrigger=PropertyChanged}" MaskType="RegEx" Mask="[0-9]{5}"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=IVA}">
                    <dxe:TextEdit EditValue="{Binding PIVA, UpdateSourceTrigger=PropertyChanged}" MaxLength="16"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Telefono}">
                    <dxe:TextEdit EditValue="{Binding TELEFONO, UpdateSourceTrigger=PropertyChanged}" MaskType="Numeric" MaxLength="18"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Responsabile}">
                    <dxe:TextEdit EditValue="{Binding RESPONSABILE, UpdateSourceTrigger=PropertyChanged}" MaxLength="20"/>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="E-Mail">
                    <dxe:TextEdit EditValue="{Binding EMAILS, UpdateSourceTrigger=PropertyChanged}"
                                  MaskType="RegEx" Mask="[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}"/>
                </dxlc:LayoutItem>
            </dxlc:LayoutGroup>

            <dxlc:LayoutGroup Header="{DynamicResource ResourceKey=ConfTecnica}" View="GroupBox" Orientation="Vertical"
                              IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window},Path=DataContext.canEditImpianti}" >
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=TipoSistema}">
                    <dxe:ComboBoxEdit IsTextEditable="False" EditValue="{Binding IDTTS, UpdateSourceTrigger=PropertyChanged}" 
                                      ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window},Path=DataContext.tts}"  />
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=Locazione}">
                    <StackPanel Margin="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                        <RadioButton Content="{DynamicResource Locale}" Margin="10,0,0,0" x:Name="rd_LOCALE" VerticalAlignment="Center"  
                                     IsChecked="{Binding REMOTO,  UpdateSourceTrigger=PropertyChanged,Converter={StaticResource InverseBooleanConverter}}" GroupName="LocationL" Panel.ZIndex="9" TabIndex="10" />
                        <RadioButton Content="{DynamicResource Remoto}" Margin="10,0,6,0" x:Name="rd_REMOTO" VerticalAlignment="Center" 
                                     IsChecked="{Binding REMOTO}" GroupName="LocationR" Panel.ZIndex="10" TabIndex="11" Tag="PRISMA"/>
                    </StackPanel>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem Label="{DynamicResource ResourceKey=TipoConnessione}">
                    <StackPanel Margin="0" Orientation="Horizontal" VerticalAlignment="Center">
                        <RadioButton x:Name="rd_TIPOCONN" Content="{DynamicResource Terminale}" Margin="10,0,0,0" Tag="PRISMA" VerticalAlignment="Center" GroupName="TipoConnT" 
                                     IsChecked="{Binding TIPOCONN, Converter={StaticResource InverseBooleanConverter}, UpdateSourceTrigger=PropertyChanged}" Panel.ZIndex="11" TabIndex="12" />
                        <RadioButton x:Name="rd_SLAVE" Content="Slave" Margin="10,0,6,0" Tag="PRISMA" VerticalAlignment="Center" GroupName="TipoConnS" 
                                     IsChecked="{Binding TIPOCONN}" Panel.ZIndex="12" TabIndex="13" />
                    </StackPanel>
                </dxlc:LayoutItem>
            </dxlc:LayoutGroup>

            <dxlc:LayoutGroup Header="{DynamicResource ResourceKey=CentralinaSTK}" View="GroupBox" Orientation="Vertical"
                              IsEnabled="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window},Path=DataContext.canEditImpianti}" >
                <dxlc:LayoutItem >
                    <StackPanel DockPanel.Dock="Top" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,6">
                        <RadioButton x:Name="rd_sermatic" Content="{DynamicResource SI}" Margin="10,0,0,0"  Tag="PRISMA" VerticalAlignment="Center" Width="100" 
                                     HorizontalAlignment="Left" IsChecked="{Binding SERMATIC, UpdateSourceTrigger=PropertyChanged}" GroupName="stkS" Panel.ZIndex="13" TabIndex="14" />
                        <RadioButton x:Name="rd_sermaticNO" Content="{DynamicResource NO}" Margin="10,0,0,0" Tag="PRISMA" VerticalAlignment="Center" Width="100" 
                                     HorizontalAlignment="Left" IsChecked="{Binding SERMATIC, Converter={StaticResource InverseBooleanConverter}, UpdateSourceTrigger=PropertyChanged}" GroupName="stkN" 
                                     Panel.ZIndex="14" TabIndex="15" />
                    </StackPanel>
                </dxlc:LayoutItem>
                <dxlc:LayoutItem >
                    <!--<dxe:ComboBoxEdit  EditValue="{Binding SERMATICCOM}"/>-->
                    <UniformGrid Rows="1" Columns="2" DockPanel.Dock="Top" Margin="4,0,4,4" IsEnabled="{Binding IsChecked, ElementName=rd_sermatic, UpdateSourceTrigger=PropertyChanged}">
                        <TextBlock Margin="0" TextWrapping="Wrap" Text="{DynamicResource PortaCOM}" TextAlignment="Right" VerticalAlignment="Center" HorizontalAlignment="Right"/>
                        <dxe:ComboBoxEdit IsTextEditable="False" EditValue="{Binding SERMATICCOM, UpdateSourceTrigger=PropertyChanged}" >
                            <dxe:ComboBoxEdit.Items>
                                <dxe:ComboBoxEditItem Content="COM1"/>
                                <dxe:ComboBoxEditItem Content="COM2"/>
                                <dxe:ComboBoxEditItem Content="COM3"/>
                                <dxe:ComboBoxEditItem Content="COM4"/>
                                <dxe:ComboBoxEditItem Content="COM5"/>
                                <dxe:ComboBoxEditItem Content="COM6"/>
                                <dxe:ComboBoxEditItem Content="COM7"/>
                                <dxe:ComboBoxEditItem Content="COM8"/>
                            </dxe:ComboBoxEdit.Items>
                        </dxe:ComboBoxEdit>
                    </UniformGrid>
                </dxlc:LayoutItem>
            </dxlc:LayoutGroup>
        </dxlc:LayoutControl>
    </Grid>
</ScrollViewer>