开发者

WP7 Disabled Button Style

开发者 https://www.devze.com 2023-01-21 08:09 出处:网络
I am trying to do change the 开发者_如何学编程color of a disabled button\'s border/text. Code:

I am trying to do change the 开发者_如何学编程color of a disabled button's border/text.

Code:

<Style x:Key="TopTabChooserButtonDisabled" TargetType="Button">
        <Setter Property="Foreground" Value="Orange" />
    </Style>

But it doesn't affect the button at all in Silverlight. Does anybody know what will make it change? THanks.


You can do this fairly easily by retemplating the control in blend.

Rclick the control, edit template, edit a copy. You then have access to all the states and constituent objects that make up the control in each of those states to change properties of each as needed.

0

精彩评论

暂无评论...
验证码 换一张
取 消