Browse Source

fix #4786 invalidatevisual when foreground changes in TextPresenter

pull/4787/head
Andrey Kunchev 6 years ago
parent
commit
0416b234b7
  1. 2
      src/Avalonia.Controls/Presenters/TextPresenter.cs

2
src/Avalonia.Controls/Presenters/TextPresenter.cs

@ -77,7 +77,7 @@ namespace Avalonia.Controls.Presenters
static TextPresenter()
{
AffectsRender<TextPresenter>(SelectionBrushProperty);
AffectsRender<TextPresenter>(SelectionBrushProperty, TextBlock.ForegroundProperty);
AffectsMeasure<TextPresenter>(TextProperty, PasswordCharProperty, RevealPasswordProperty,
TextAlignmentProperty, TextWrappingProperty, TextBlock.FontSizeProperty,
TextBlock.FontStyleProperty, TextBlock.FontWeightProperty, TextBlock.FontFamilyProperty);

Loading…
Cancel
Save