VisualStateManager — showing mouseover state when control is focused

前端 未结 2 1734
天命终不由人
天命终不由人 2021-02-02 02:40

I am creating a WPF button using Windows 8 styling (formerly metro).

I would like the focused state of the button to show with a solid background. When the mouse is ove

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-02 03:12

    This is a small edit to Jason's answer. It turns out that his approach which uses two ContentPresenters breaks the operation of the short cut keys. I've made a small adjustment... the short cut keys now work, but the transition animation isn't quite as nice...

    
    

提交回复
热议问题