TextBox Mouse Over
#5587
-
Hi, my TextBox is styled like this: <TextBox Text="{Binding Text}"
IsReadOnly="True"
AcceptsReturn="True"
TextWrapping="Wrap"
FontWeight="Medium"
Background="Black"
Foreground="White"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Auto"/> but when mouse over it, background color is changed to white (it hides text). Is there any way to set style for background when mouse over it? |
Beta Was this translation helpful? Give feedback.
Answered by
maxkatz6
Mar 2, 2021
Replies: 1 comment 1 reply
-
You need to override these styles: I assume you are using Fluent theme. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Gramli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to override these styles:
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/TextBox.xaml#L118-L125
I assume you are using Fluent theme.