Skip to content

Commit 588ca12

Browse files
committed
fixed Background of ComboBox when disabled
1 parent bd2fbc8 commit 588ca12

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/MainDemo.Wpf/FieldsLineUp.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public FieldsLineUp()
5656
tb.SetBinding(TextBoxBase.IsReadOnlyProperty, new Binding(nameof(CheckBox.IsChecked)) { ElementName = nameof(IsReadOnlyCheckBox) });
5757
SetValue(control);
5858
}
59+
IsEnabledCheckBox.IsChecked = false;
5960
}
6061

6162
private void UpdateThickness(RangeBase slider, DependencyProperty property, bool horizontal)

src/MainDemo.Wpf/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"Demo App": {
44
"commandName": "Project",
5-
"commandLineArgs": "-p Home -t Inherit -f LeftToRight"
5+
"commandLineArgs": "-p \"Fields line up\" -t Light -f LeftToRight"
66
}
77
}
88
}

src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ComboBox.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@
627627
<Condition Property="wpf:TextFieldAssist.HasOutlinedTextField" Value="False" />
628628
</MultiTrigger.Conditions>
629629
<Setter TargetName="OuterBorder" Property="BorderBrush" Value="Transparent" />
630-
<Setter TargetName="OuterBorder" Property="Opacity" Value="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" />
630+
<Setter TargetName="ContentGrid" Property="Opacity" Value="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" />
631631
<Setter TargetName="OuterBorder" Property="wpf:BottomDashedLineAdorner.IsAttached" Value="True" />
632632
<Setter TargetName="OuterBorder" Property="wpf:BottomDashedLineAdorner.DashStyle" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:TextFieldAssist.HasFilledTextField), Converter={StaticResource BooleanToDashStyleConverter}}" />
633633
<Setter TargetName="toggleButton" Property="Opacity" Value="1" />

0 commit comments

Comments
 (0)