I have a button that have the following code in the mouse enter event:
private void CloseB_MouseEnter(object sender, MouseEventArgs e) {
CloseB.Background = Brushes.Red;
}
But when the mouse enters, the color of the button turns to a weird light-blue (almost white) color.
I already tried to set opacity to 1 and to set Background property as :
new SolidColorBrush(Colors.Red);
It is located in a grid with Background color set to Black. And the original color of the button is also black.
I don't know what I am missing.
Note: variable CloseB is my button.