In a button's control template, how can I set the color of contained text?

后端 未结 3 1191
半阙折子戏
半阙折子戏 2021-02-20 10:37

Using Silverlight 4 & WPF 4, I\'m trying to create a button style that alters the text color of any contained text when the button is mouseover\'d. Since I\'m trying to make

3条回答
  •  春和景丽
    2021-02-20 11:11

    I use this in my template and it works fine

    
                    
    
                        
                    
    

    You must insert this code in your button template creation but i use this when i put text in the button content and if you want to add other controls on it use the normal style

提交回复
热议问题