WPF template for yes/no ToggleButton

前端 未结 2 547
天涯浪人
天涯浪人 2021-02-11 05:09

Can anyone help me with a simple template to make a WPF ToggleButton show \"yes\" or \"no\" depending on it\'s toggle state?

I dont want it to look like a button though,

2条回答
  •  梦毁少年i
    2021-02-11 05:43

    You can do this easily with a style:

        
        
            
        
        
            
        
    
    

提交回复
热议问题