Skip to content

Commit 0a4e499

Browse files
committed
The "hole" in the combo box template is painfully obvious when the background on the window is a non-solid color brush. When the combobox is open set the background to match the popup.
Relates to #630 #584
1 parent 93b3d26 commit 0a4e499

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ComboBox.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@
476476
<Trigger SourceName="PART_Popup" Property="PopupPlacement" Value="{x:Static materialdesign:ComboBoxPopupPlacement.Classic}">
477477
<Setter Property="ItemContainerStyle" Value="{StaticResource MaterialDesignComboBoxItemStyle}" />
478478
</Trigger>
479+
<Trigger SourceName="PART_Popup" Property="IsOpen" Value="True">
480+
<Setter Property="Background" TargetName="templateRoot" Value="{Binding Background, ElementName=PART_Popup}" />
481+
</Trigger>
479482
<Trigger Property="IsEnabled" Value="False">
480483
<Setter TargetName="templateRoot" Property="Opacity" Value="0.56"/>
481484
</Trigger>

0 commit comments

Comments
 (0)