Skip to content

Commit 0b9d888

Browse files
committed
Fixes alignment of error message in validation template #343
1 parent ddd8326 commit 0b9d888

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.ValidationErrorTemplate.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
<DataTemplate DataType="{x:Type ValidationError}">
1010
<TextBlock Foreground="{DynamicResource ValidationErrorBrush}"
1111
FontSize="10"
12-
MaxWidth="250"
12+
MaxWidth="{Binding ElementName=Placeholder, Path=ActualWidth}"
13+
HorizontalAlignment="Left"
1314
Margin="2"
1415
TextWrapping="Wrap"
1516
Text="{Binding ErrorContent}"

0 commit comments

Comments
 (0)