<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Multiple Styles in Markup</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Multiple Styles in Markup]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 23:13:18 +0000</pubDate>
  <lastBuildDate>Mon, 19 May 2008 01:27:35 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=10673</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Multiple Styles in Markup : Hi,  You can inherit Negative...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10673&amp;PID=35395&amp;title=multiple-styles-in-markup#35395</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10673<br /><strong>Posted:</strong> 19 May 2008 at 1:27am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can inherit Negative from TotalRow:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; &lt;Style x:Key="Negative" <strong>BasedOn="{StaticResource TotalRow}"&gt;</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;Setter Property="TextBlock.Foreground" Value='Red'/&gt;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; &lt;/Style&gt;&nbsp;&nbsp;&nbsp; <BR></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 19 May 2008 01:27:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10673&amp;PID=35395&amp;title=multiple-styles-in-markup#35395</guid>
  </item> 
  <item>
   <title><![CDATA[Multiple Styles in Markup : Is there a way to add multiple...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10673&amp;PID=35386&amp;title=multiple-styles-in-markup#35386</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 10673<br /><strong>Posted:</strong> 18 May 2008 at 11:50pm<br /><br />Is there a way to add multiple styles to a markup tag?<br><br>For example, I have the following markup:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&lt;Page&gt;<br>&nbsp;&nbsp;&nbsp; &lt;Page.Resources&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Style x:Key="TotalRow"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Setter Property="Border.BorderBrush" Value='Black'/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Setter Property="Border.BorderThickness" Value='0,1,0,0'/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Setter Property="TextBlock.FontWeight" Value='Bold'/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Style&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Style x:Key="Negative"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Setter Property="TextBlock.Foreground" Value='Red'/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Style&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/Page.Resources&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;Grid Margin="30"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Grid.ColumnDefinitions&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ColumnDefinition MinWidth="50" MaxWidth="200"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ColumnDefinition MinWidth="50" MaxWidth="150" /&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;ColumnDefinition/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Grid.ColumnDefinitions&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Grid.RowDefinitions&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="Auto"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="Auto"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;RowDefinition Height="Auto"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Grid.RowDefinitions&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;TextBlock Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" FontSize="14"&gt;Base Contract&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;TextBlock Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" FontSize="14" HorizontalAlignment="Right"&gt;500.00&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;TextBlock Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" FontSize="14"&gt;Approved Changes&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;TextBlock&nbsp; Style="{StaticResource Negative}" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" FontSize="14" HorizontalAlignment="Right"&gt;-600.00&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Border Style="{StaticResource TotalRow}" Grid.Column="0" Grid.Row="2"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;TextBlock Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" FontSize="14"&gt;Revised Contract&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Border&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Border Style="{StaticResource TotalRow}" Grid.Column="1" Grid.Row="2"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;TextBlock Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" FontSize="14" HorizontalAlignment="Right"&gt;-100.00&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Border&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/Grid&gt;<br>&lt;/Page&gt;<br></pre></td></tr></table><br><br>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:<br><br>&nbsp;Style="{StaticResource TotalRow, Negative}" <br>&nbsp;Style="{StaticResource TotalRow, StaticResource Negative}" <br>&nbsp;Style="{StaticResource TotalRow}, {StaticResource Negative}" <br>&nbsp;Style="{StaticResource TotalRow}"&nbsp; Style="{StaticResource Negative}" <br><br>With no success. Is this possible, or do I need to create a third style that encapsulates TotalRow and Negative?<br><br>Thanks.<br>]]>
   </description>
   <pubDate>Sun, 18 May 2008 23:50:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10673&amp;PID=35386&amp;title=multiple-styles-in-markup#35386</guid>
  </item> 
 </channel>
</rss>