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

后端 未结 7 1700
灰色年华
灰色年华 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:12

    Try to set Focusable to false. The button will be clickable but will not remain focused.

提交回复
热议问题