Browse Source

Invalidate TextBox on PasswordChar change

pull/3879/head
Benedikt Schroeder 6 years ago
parent
commit
d5a317cee6
  1. 2
      src/Avalonia.Controls/Presenters/TextPresenter.cs

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

@ -81,7 +81,7 @@ namespace Avalonia.Controls.Presenters
TextBlock.FontSizeProperty.Changed, TextBlock.FontStyleProperty.Changed,
TextBlock.FontWeightProperty.Changed, TextBlock.FontFamilyProperty.Changed,
SelectionStartProperty.Changed, SelectionEndProperty.Changed,
SelectionForegroundBrushProperty.Changed
SelectionForegroundBrushProperty.Changed, PasswordCharProperty.Changed
).AddClassHandler<TextPresenter>((x, _) => x.InvalidateFormattedText());
CaretIndexProperty.Changed.AddClassHandler<TextPresenter>((x, e) => x.CaretIndexChanged((int)e.NewValue));

Loading…
Cancel
Save