![]() |
Multiple Styles in Markup |
Post Reply ![]() |
Author | |
jpbro ![]() Senior Member ![]() ![]() Joined: 12 January 2007 Status: Offline Points: 1354 |
![]() ![]() ![]() ![]() ![]() Posted: 18 May 2008 at 11:50pm |
Is there a way to add multiple styles to a markup tag?
For example, I have the following markup:
The -600.00 cell has the Negative style applied (works as expected), but I would like to be able to add the Negative style AND the TotalRow style to the bottom right cell (-100.00). I've tried a few variations like: Style="{StaticResource TotalRow, Negative}" Style="{StaticResource TotalRow, StaticResource Negative}" Style="{StaticResource TotalRow}, {StaticResource Negative}" Style="{StaticResource TotalRow}" Style="{StaticResource Negative}" With no success. Is this possible, or do I need to create a third style that encapsulates TotalRow and Negative? Thanks. |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You can inherit Negative from TotalRow:
<Style x:Key="Negative" BasedOn="{StaticResource TotalRow}">
<Setter Property="TextBlock.Foreground" Value='Red'/> </Style> |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |