Add multiple Styles to Silverlight Control

Posted by lidermin on Stack Overflow See other posts from Stack Overflow or by lidermin
Published on 2010-04-21T19:01:10Z Indexed on 2010/04/21 19:03 UTC
Read the original article Hit count: 174

Filed under:

Hello, I'm using silverlight and I defined two styles for the page:

  • ExpanderBottomRightButtonStyle
  • ExpanderScaleStyle

Now I want to add those two styles to the same control:

<controls:Expander x:Name="expBRButton" Grid.Row="1" Grid.Column="2" Margin="5" Style="{StaticResource ExpanderBottomRightButtonStyle}">
            <controls:Expander.Content>
                <Button Content="&lt;Button&gt;"></Button>
            </controls:Expander.Content>
        </controls:Expander>

I don't want to join the two styles in one, cause I need them separately too.

I thought something like:

Style="{StaticResource ExpanderBottomRightButtonStyle ExpanderScaleStyle}"

But it's not possible. How should I do this?

I'm new on Silverlight 3.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about silverlight-3.0