Question : WPF: Applying multiple styles

Is there a way to apply multiple styles to a WPF control?  I've tried this:

Style="{StaticResource Style1} | {StaticResource Style2} "

But get this error:

The text ' {StaticResource labelStyle2}' is not allowed after the closing '}' of a MarkupExtension expression.

Answer : WPF: Applying multiple styles

Two styles cannot be applied on a control. Instead Inherit the Style1 and Style2 to make a new style and then apply the new style:

 

 

Then use Style2 as
Random Solutions  
 
programming4us programming4us