C
C#2mo ago
WantToBeeMe

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-textblock
SelectableTextBlock | Avalonia Docs
REFERENCE - Built-in Controls
No description
5 Replies
Sehra
Sehra2mo ago
try with SelectionForegroundBrush
WantToBeeMe
WantToBeeMeOP2mo ago
omg you are a genius okay, it does state it wrong on the documentation then haha thanks
Sehra
Sehra2mo ago
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
WantToBeeMe
WantToBeeMeOP2mo ago
yea i saw that haha. however, i am to blind to not see that the docs was different from the actual property name
MODiX
MODiX2mo ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?