Skip to content

Commit 6497f33

Browse files
authored
Use DynamicResource for ValidationErrorTemplate inside TextBox (#2197)
1 parent ca27c22 commit 6497f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.TextBox.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<Setter Property="Padding" Value="{x:Static wpf:Constants.TextBoxDefaultPadding}" />
2828
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
2929
<Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
30-
<Setter Property="Validation.ErrorTemplate" Value="{StaticResource MaterialDesignValidationErrorTemplate}"/>
30+
<Setter Property="Validation.ErrorTemplate" Value="{DynamicResource MaterialDesignValidationErrorTemplate}"/>
3131
<Setter Property="wpf:TextFieldAssist.UnderlineBrush" Value="{DynamicResource PrimaryHueMidBrush}" />
3232
<Setter Property="wpf:HintAssist.Foreground" Value="{DynamicResource PrimaryHueMidBrush}" />
3333
<Setter Property="ContextMenu" Value="{StaticResource MaterialDesignDefaultContextMenu}" />

0 commit comments

Comments
 (0)