AvaloniaEdit icon indicating copy to clipboard operation
AvaloniaEdit copied to clipboard

[Help] How to set SelectionBrush, CaretBrush in XAML

Open davidtimovski opened this issue 3 years ago • 0 comments

How do I style the CaretBrush, SelectionBrush, and SelectionForeground in XAML? I noticed SelectionBrush and SelectionForeground are properties of TextEditor.TextArea and CaretBrush is a property of TextEditor.TextArea.Caret but I'm unsure how to bind them in XAML. Probably a basic lack of XAML knowledge on my part.

Previously I was using TextBox and I bound to its CaretBrush and SelectionBrush properties.

Might be a good idea to create some labels for Help Wanted because the docs for this library and AvalonEdit are pretty scarce.

davidtimovski avatar Jul 29 '22 16:07 davidtimovski