Browse Source
Merge pull request #4815 from AvaloniaUI/fixes/datavalidationerror-text-wrapping
Fluent DataValidationErrors text wrapping
pull/4827/head
Max Katz
6 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
2 deletions
-
src/Avalonia.Themes.Fluent/DataValidationErrors.xaml
|
|
|
@ -31,12 +31,16 @@ |
|
|
|
</Setter> |
|
|
|
<Setter Property="ErrorTemplate"> |
|
|
|
<DataTemplate> |
|
|
|
<Canvas Width="14" Height="14" Margin="4 0 1 0" |
|
|
|
<Canvas Name="PART_ErrorTemplateCanvas" |
|
|
|
Width="14" Height="14" Margin="4 0 1 0" |
|
|
|
Background="Transparent"> |
|
|
|
<Canvas.Styles> |
|
|
|
<Style Selector="ToolTip"> |
|
|
|
<Style Selector="Canvas#PART_ErrorTemplateCanvas ToolTip"> |
|
|
|
<Setter Property="BorderBrush" Value="{DynamicResource SystemControlErrorTextForegroundBrush}"/> |
|
|
|
</Style> |
|
|
|
<Style Selector="Canvas#PART_ErrorTemplateCanvas ToolTip TextBlock"> |
|
|
|
<Setter Property="TextWrapping" Value="Wrap" /> |
|
|
|
</Style> |
|
|
|
</Canvas.Styles> |
|
|
|
<ToolTip.Tip> |
|
|
|
<ItemsControl Items="{Binding}"/> |
|
|
|
|