浏览代码

Merge pull request #5719 from AvaloniaUI/fixes/data-validation-errors-not-displaying

fix datavalidation errors on fluent theme.
Dan Walmsley 4 年之前
父节点
当前提交
6506ceb2e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Avalonia.Themes.Fluent/Controls/DataValidationErrors.xaml

+ 1 - 1
src/Avalonia.Themes.Fluent/Controls/DataValidationErrors.xaml

@@ -35,7 +35,7 @@
       <ItemsControl Items="{Binding}">
         <ItemsControl.ItemTemplate>
           <DataTemplate>
-            <TextBlock Text="{Binding Message}" Foreground="{DynamicResource SystemControlErrorTextForegroundBrush}" TextWrapping="Wrap" />
+            <TextBlock Text="{Binding }" Foreground="{DynamicResource SystemControlErrorTextForegroundBrush}" TextWrapping="Wrap" />
           </DataTemplate>
         </ItemsControl.ItemTemplate>
       </ItemsControl>