Skip to content

Commit 3e3e26b

Browse files
committed
Merge pull request #346 from mgnslndh/master
Fixes alignment of error message in validation template #343
2 parents ddd8326 + 0b9d888 commit 3e3e26b

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)