Browse Source

use datatemplates instead of itemstemplate for datavalidationerrors.

pull/5911/head
Dan Walmsley 5 years ago
committed by GitHub
parent
commit
6fc5af3a68
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Avalonia.Themes.Fluent/Controls/DataValidationErrors.xaml

4
src/Avalonia.Themes.Fluent/Controls/DataValidationErrors.xaml

@ -28,13 +28,13 @@
<Style.Resources> <Style.Resources>
<DataTemplate x:Key="InlineDataValidationErrorTemplate"> <DataTemplate x:Key="InlineDataValidationErrorTemplate">
<ItemsControl Items="{Binding}"> <ItemsControl Items="{Binding}">
<ItemsControl.ItemTemplate> <ItemsControl.DataTemplates>
<DataTemplate> <DataTemplate>
<TextBlock Foreground="{DynamicResource SystemControlErrorTextForegroundBrush}" <TextBlock Foreground="{DynamicResource SystemControlErrorTextForegroundBrush}"
Text="{Binding}" Text="{Binding}"
TextWrapping="Wrap" /> TextWrapping="Wrap" />
</DataTemplate> </DataTemplate>
</ItemsControl.ItemTemplate> </ItemsControl.DataTemplates>
</ItemsControl> </ItemsControl>
</DataTemplate> </DataTemplate>
<ControlTemplate x:Key="InlineDataValidationContentTemplate" TargetType="DataValidationErrors"> <ControlTemplate x:Key="InlineDataValidationContentTemplate" TargetType="DataValidationErrors">

Loading…
Cancel
Save