Change the background color of a toggle button when the toggle button is checked

后端 未结 7 720
野性不改
野性不改 2020-12-16 12:43

I want to change the background color of a toggle button when the toggle button is checked and vice versa.

How can I achieve that?

7条回答
  •  一整个雨季
    2020-12-16 13:08

    Do you have Expression Blend? It can be done easily by right-clicking on the ToggleButton and Select "Edit Template" then "Edit a copy...". From the template go to the "States" Tab and select the "Checked" state. Reset the background color, differing from the base state and your done.

    See sample:

    
        
        
            
            
            
            
        
        
        
    
    
    
        
    
    

提交回复
热议问题