How do I prevent WPF buttons from remaining highlighted after being clicked?

后端 未结 7 1683
灰色年华
灰色年华 2021-02-06 21:44

When a standard WPF button is clicked, it gets highlighted in blue (probably using the blue color from whatever Windows theme is set), and it stays highlighted until you interac

7条回答
  •  [愿得一人]
    2021-02-06 22:00

    That is simply the focussed state. To turn it off you will have to change the focussed state. It's easiest by using Blend.

    I do not recommend setting Focusable to false because it interferes with using the keyboard

提交回复
热议问题