I am trying to change the color of the mouse cursor when it's hovering over a textbox, so that it's easier to see on a dark background.
I know how to change four things:
- Textbox background color (
.Background
) - Textbox foreground color (
.Foreground
) - Textbox caret color (
.CaretBrush
) - Mouse cursor image (
Mouse.OverrideCursor
orthis.Cursor
)
I just can't change the mouse cursor color.
I came across a way to completely change the mouse cursor to a custom made cursor in another question someone posted: "Custom cursor in WPF?". But it seems overkill for just wanting to change the color, so that I can actually see where the mouse is.
The mouse cursor color actually changes to white automatically if the textbox has a black background. But does not change automatically if it has a dark background that isn't quite black.