Browse Source

Sync CaretIndex directly (#16981)

pull/17021/head
Benedikt Stebner 1 year ago
committed by GitHub
parent
commit
533218d13a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Avalonia.Controls/TextBox.cs

2
src/Avalonia.Controls/TextBox.cs

@ -411,6 +411,8 @@ namespace Avalonia.Controls
var newValue = e.GetNewValue<int>(); var newValue = e.GetNewValue<int>();
SetCurrentValue(SelectionStartProperty, newValue); SetCurrentValue(SelectionStartProperty, newValue);
SetCurrentValue(SelectionEndProperty, newValue); SetCurrentValue(SelectionEndProperty, newValue);
_presenter?.SetCurrentValue(TextPresenter.CaretIndexProperty, newValue);
} }
/// <summary> /// <summary>

Loading…
Cancel
Save