remove blue highlight on buttons wpf

前端 未结 2 432
无人共我
无人共我 2021-01-20 06:55

I am making a WPF project. While running the application, as I take my cursor to a button, it gets highlighted by blue color filled inside it.

Now, I want to remove

2条回答
  •  没有蜡笔的小新
    2021-01-20 07:23

    Actually, I found the thing where I was going wrong. Whenever my pointer goes to a button, does not change the background of the button or even the foreground of the button, but it changes the background of the border.

    So, while overwriting the button style, actually the border of the background has to be overwritten and not the button foreground or the background.

    Here is the answer to this question : How to Disable MouseOver Effects

提交回复
热议问题