【发布时间】:2010-04-22 17:36:49
【问题描述】:
我使用的是silverlight,我为页面定义了两种样式:
- ExpanderBottomRightButtonStyle
- ExpanderScaleStyle
现在我想将这两种样式添加到同一个控件中:
<controls:Expander x:Name="expBRButton" Grid.Row="1" Grid.Column="2" Margin="5" Style="{StaticResource ExpanderBottomRightButtonStyle}">
<controls:Expander.Content>
<Button Content="<Button>"></Button>
</controls:Expander.Content>
</controls:Expander>
我不想将这两种样式合二为一,因为我也需要它们。
我的想法是这样的:
Style="{StaticResource ExpanderBottomRightButtonStyle ExpanderScaleStyle}"
但这是不可能的。我该怎么做?
我是 Silverlight 3 的新手。
提前致谢。
【问题讨论】:
标签: silverlight silverlight-3.0