Skip to content

Commit

Permalink
Fix issue where ComboBox's ErrorTemplate doesn't show up unless edita…
Browse files Browse the repository at this point in the history
…ble (#168)
  • Loading branch information
Kinnara committed Oct 3, 2020
1 parent 57b71b4 commit 2e25969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ModernWpf/Styles/ComboBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding primitives:ControlHelper.CornerRadius}"
MinWidth="{DynamicResource ComboBoxThemeMinWidth}" />
MinWidth="{DynamicResource ComboBoxThemeMinWidth}"
primitives:ValidationHelper.IsTemplateValidationAdornerSite="True" />
<Border
x:Name="HighlightBackground"
Grid.Row="1"
Expand Down Expand Up @@ -330,8 +331,7 @@
primitives:ControlHelper.PlaceholderForeground="{TemplateBinding primitives:ControlHelper.PlaceholderForeground}"
Visibility="Collapsed"
AutomationProperties.Name="{TemplateBinding AutomationProperties.Name}"
primitives:ControlHelper.CornerRadius="{TemplateBinding primitives:ControlHelper.CornerRadius}"
primitives:ValidationHelper.IsTemplateValidationAdornerSite="True" />
primitives:ControlHelper.CornerRadius="{TemplateBinding primitives:ControlHelper.CornerRadius}" />
<ToggleButton
x:Name="DropDownOverlay"
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
Expand Down

0 comments on commit 2e25969

Please sign in to comment.