Skip to content

Commit 8eebbcb

Browse files
committed
designer fix #485
1 parent acd5005 commit 8eebbcb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ComboBox.xaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<system:Double x:Key="PopupContentPresenterExtend">4</system:Double>
1717
<system:Double x:Key="PopupTopBottomMargin">8</system:Double>
1818
<system:Double x:Key="PopupLeftRightMargin">16</system:Double>
19+
<system:Boolean x:Key="TrueValue">True</system:Boolean>
1920

2021
<Style x:Key="FocusVisual">
2122
<Setter Property="Control.Template">
@@ -574,9 +575,11 @@
574575
</Trigger>
575576
<Trigger Property="IsEditable" Value="true">
576577
<Setter Property="IsTabStop" Value="false" />
577-
<Setter Property="wpf:ComboBoxAssist.ShowSelectedItem" Value="True"/>
578+
<!-- designer prefers hard bool -->
579+
<Setter Property="wpf:ComboBoxAssist.ShowSelectedItem" Value="{StaticResource TrueValue}" />
578580
</Trigger>
579-
<Trigger Property="wpf:ComboBoxAssist.ShowSelectedItem" Value="True">
581+
<!-- designer prefers hard bool -->
582+
<Trigger Property="wpf:ComboBoxAssist.ShowSelectedItem" Value="{StaticResource TrueValue}" >
580583
<Setter Property="ItemContainerStyle" Value="{StaticResource MaterialDesignComboBoxItemStyle}" />
581584
</Trigger>
582585
</Style.Triggers>

0 commit comments

Comments
 (0)