私は2つのコンボボックスを重ねています。このコンボボックスを含むフォームを開いて下のコンボボックスにマウスオーバーしないと、最初のコンボボックスをクリックして、ドロップダウンリストから2番目のコンボボックスのすぐ上にある項目を選択すると、問題が発生します。アイテムをクリックすると、ドロップダウン リストは閉じますが、マウスは 2 番目のコンボ ボックスの上にとどまります。ただし、このコンボボックスは強調表示されず、クリックにまったく反応しません。この写真を見てください:
両方のコンボボックスIsEditable = false;
しかし、マウスを 2 番目のコンボボックスから出して元に戻すと、すべて正常に動作します。これを修正する方法を教えてください。
アップデート。XAML:
<ComboBox Background="{x:Null}" Height="33" HorizontalAlignment="Left" IsEditable="False" IsEnabled="True" Margin="10,151,0,0" Name="comboBox2" VerticalAlignment="Top" Width="239" VerticalContentAlignment="Center" FontSize="14" IsReadOnly="False" Text="" SelectionChanged="comboBox2_SelectionChanged" TabIndex="6" HorizontalContentAlignment="Left" Padding="10,3" FontWeight="SemiBold" AllowDrop="False" Cursor="Hand" IsTabStop="True" />
<ComboBox Background="{x:Null}" FontSize="14" Height="33" HorizontalAlignment="Left" IsEditable="False" IsEnabled="True" Margin="10,190,0,0" Name="comboBox3" VerticalAlignment="Top" VerticalContentAlignment="Center" Width="439" IsReadOnly="False" Text="" SelectionChanged="comboBox3_SelectionChanged" TabIndex="8" HorizontalContentAlignment="Left" Padding="10,3" FontWeight="SemiBold" ClipToBounds="False" Cursor="Hand" IsHitTestVisible="True" SnapsToDevicePixels="True" UseLayoutRounding="True" />