Browse Source
Merge pull request #5910 from AvaloniaUI/fixes-data-validation-errors-use-datatemplates-1
dont use datatemplate in datavalidationerrors.
pull/5921/head
Dan Walmsley
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
8 deletions
-
src/Avalonia.Themes.Fluent/Controls/DataValidationErrors.xaml
|
|
|
@ -27,14 +27,12 @@ |
|
|
|
<Style Selector="DataValidationErrors"> |
|
|
|
<Style.Resources> |
|
|
|
<DataTemplate x:Key="InlineDataValidationErrorTemplate"> |
|
|
|
<ItemsControl Items="{Binding}"> |
|
|
|
<ItemsControl.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<TextBlock Foreground="{DynamicResource SystemControlErrorTextForegroundBrush}" |
|
|
|
Text="{Binding}" |
|
|
|
TextWrapping="Wrap" /> |
|
|
|
</DataTemplate> |
|
|
|
</ItemsControl.ItemTemplate> |
|
|
|
<ItemsControl Items="{Binding}" TextBlock.Foreground="{DynamicResource SystemControlErrorTextForegroundBrush}"> |
|
|
|
<ItemsControl.Styles> |
|
|
|
<Style Selector="TextBlock"> |
|
|
|
<Setter Property="TextWrapping" Value="Wrap" /> |
|
|
|
</Style> |
|
|
|
</ItemsControl.Styles> |
|
|
|
</ItemsControl> |
|
|
|
</DataTemplate> |
|
|
|
<ControlTemplate x:Key="InlineDataValidationContentTemplate" TargetType="DataValidationErrors"> |
|
|
|
|