Can I dynamically switch between styles in WPF?

后端 未结 2 883
情书的邮戳
情书的邮戳 2020-12-21 22:03

Let\'s say I wanted to display a Button and a few RadioButtons. Based on which RadioButton is selected, I want to apply a different st

2条回答
  •  不知归路
    2020-12-21 22:37

    @Brandon's answer would have worked, but I think this is a little more elegant:

    
        None
        Style 1
        Style 2
        Style 3
    
    
    

提交回复
热议问题