Browse Source
Fix SelectableTextBlock selection (#18049)
repro/18104-drag-drop-flyout-placement
leo
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/SelectableTextBlock.cs
|
|
|
@ -146,7 +146,7 @@ namespace Avalonia.Controls |
|
|
|
/// </summary>
|
|
|
|
public void SelectAll() |
|
|
|
{ |
|
|
|
var text = Text; |
|
|
|
var text = HasComplexContent ? Inlines?.Text : Text; |
|
|
|
|
|
|
|
SetCurrentValue(SelectionStartProperty, 0); |
|
|
|
SetCurrentValue(SelectionEndProperty, text?.Length ?? 0); |
|
|
|
|