RadioButton whith Button style XAML

前端 未结 2 1811
孤街浪徒
孤街浪徒 2021-01-19 07:20

How can I change the radiobutton style to a button style in XAML? And how to set the background color if the radiobutton is checked? I would like to use the default colors (

2条回答
  •  猫巷女王i
    2021-01-19 07:52

    You need to define the controltemplate for RadioButton and apply a trigger in controltemplate. Something like.

    
    

    And use it like.

    
                
            
    

    Hope it helps..

提交回复
热议问题