Browse Source
use datatemplates instead of itemstemplate for datavalidationerrors.
fixes-data-validation-errors-use-datatemplates
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
2 additions and
2 deletions
-
src/Avalonia.Themes.Fluent/Controls/DataValidationErrors.xaml
|
|
|
@ -28,13 +28,13 @@ |
|
|
|
<Style.Resources> |
|
|
|
<DataTemplate x:Key="InlineDataValidationErrorTemplate"> |
|
|
|
<ItemsControl Items="{Binding}"> |
|
|
|
<ItemsControl.ItemTemplate> |
|
|
|
<ItemsControl.DataTemplates> |
|
|
|
<DataTemplate> |
|
|
|
<TextBlock Foreground="{DynamicResource SystemControlErrorTextForegroundBrush}" |
|
|
|
Text="{Binding}" |
|
|
|
TextWrapping="Wrap" /> |
|
|
|
</DataTemplate> |
|
|
|
</ItemsControl.ItemTemplate> |
|
|
|
</ItemsControl.DataTemplates> |
|
|
|
</ItemsControl> |
|
|
|
</DataTemplate> |
|
|
|
<ControlTemplate x:Key="InlineDataValidationContentTemplate" TargetType="DataValidationErrors"> |
|
|
|
|