Browse Source
Merge pull request #5426 from luthfiampas/fixes-5424
Fix #5424: Slow/delay TextBox selection
pull/5528/head
Jumar Macato
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
src/Avalonia.Controls/Presenters/TextPresenter.cs
|
|
|
@ -80,7 +80,9 @@ namespace Avalonia.Controls.Presenters |
|
|
|
static TextPresenter() |
|
|
|
{ |
|
|
|
AffectsRender<TextPresenter>(SelectionBrushProperty, TextBlock.ForegroundProperty, |
|
|
|
SelectionForegroundBrushProperty, CaretBrushProperty); |
|
|
|
SelectionForegroundBrushProperty, CaretBrushProperty, |
|
|
|
SelectionStartProperty, SelectionEndProperty); |
|
|
|
|
|
|
|
AffectsMeasure<TextPresenter>(TextProperty, PasswordCharProperty, RevealPasswordProperty, |
|
|
|
TextAlignmentProperty, TextWrappingProperty, TextBlock.FontSizeProperty, |
|
|
|
TextBlock.FontStyleProperty, TextBlock.FontWeightProperty, TextBlock.FontFamilyProperty); |
|
|
|
|