Where is selectionForeground in avalonia
I am super confused and it might just be a bug in avalonia. I am trying to change the propertie
SelectionForeground
of the SelectableTextBlock
. But aperently in my codebase, that property is non existant. even though it is in pretty much every documentation that i can find
https://docs.avaloniaui.net/docs/reference/controls/selectable-textblockSelectableTextBlock | Avalonia Docs
REFERENCE - Built-in Controls

5 Replies
try with
SelectionForegroundBrush
omg
you are a genius
okay, it does state it wrong on the documentation then haha
thanks
there was a link at the bottom to the source https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls/SelectableTextBlock.cs#L36
GitHub
Avalonia/src/Avalonia.Controls/SelectableTextBlock.cs at master · A...
Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology - AvaloniaUI/Avalonia
yea i saw that haha. however, i am to blind to not see that the docs was different from the actual property name
If you have no further questions, please use /close to mark the forum thread as answered