开发者

WP7 Disabled Button Style

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜