diff --git a/src/Avalonia.Controls/SelectableTextBlock.cs b/src/Avalonia.Controls/SelectableTextBlock.cs index b0fd78b321..56eade0cd4 100644 --- a/src/Avalonia.Controls/SelectableTextBlock.cs +++ b/src/Avalonia.Controls/SelectableTextBlock.cs @@ -146,7 +146,7 @@ namespace Avalonia.Controls /// public void SelectAll() { - var text = Text; + var text = HasComplexContent ? Inlines?.Text : Text; SetCurrentValue(SelectionStartProperty, 0); SetCurrentValue(SelectionEndProperty, text?.Length ?? 0);