<?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 : Markup Grid Row Background</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Markup Grid Row Background]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:01:24 +0000</pubDate>
  <lastBuildDate>Wed, 21 May 2008 01:45:48 +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=10708</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[Markup Grid Row Background : Hi,  sorry, events in ActiveX...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10708&amp;PID=35510&amp;title=markup-grid-row-background#35510</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10708<br /><strong>Posted:</strong> 21 May 2008 at 1:45am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>sorry, events in ActiveX version of Markup is quite limited - there is no class model now.</DIV><DIV>&nbsp;</DIV><DIV>As workaround instead&nbsp;single Grid you can try StackPanel + Grid in each Row.</DIV>]]>
   </description>
   <pubDate>Wed, 21 May 2008 01:45:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10708&amp;PID=35510&amp;title=markup-grid-row-background#35510</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Grid Row Background : I&amp;#039;ve been trying to figure...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10708&amp;PID=35499&amp;title=markup-grid-row-background#35499</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 10708<br /><strong>Posted:</strong> 20 May 2008 at 10:42pm<br /><br />I've been trying to figure out a way to change the background colour of an entire grid row using a trigger for IsMouseOver without success. I have a feeling that this might not be possible (because the RowDefinition doesn't support properties such as Background and Style). I've tried different workarounds using the Border element, but the best I've come up with is the ability to change the Background property for a single cell and not an entire row...<br><br>Does anyone know if what I am trying to do is possible with the current state of XAML support? Here's the code I am using to change a cell:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&lt;Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'&gt;<br>&nbsp;&nbsp; &lt;Page.Resources&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Style x:Key='SummaryRow' TargetType="Border"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Setter Property="TextBlock.VerticalAlignment" Value="Center"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Style.Triggers&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Trigger Property="IsMouseOver" Value="True"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Trigger.Setters&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Setter Property="Border.Background" Value="#f5f5e0"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Trigger.Setters&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Trigger&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Style.Triggers&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Style&gt; <br>&nbsp;&nbsp; &lt;/Page.Resources&gt;<br><br>&nbsp;&nbsp; &lt;ScrollViewer&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Grid VerticalAlignment="Center" Margin="14"&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Grid.ColumnDefinitions&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ColumnDefinition Width="150"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;ColumnDefinition Width="150"/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Grid.ColumnDefinitions&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Grid.RowDefinitions&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;RowDefinition/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;RowDefinition/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Grid.RowDefinitions&gt;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Border Grid.Row="0" Grid.Column="0" Style='{StaticResource SummaryRow}'&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;TextBlock&gt;Base Contract&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Border&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Border Grid.Row="0" Grid.Column="1" Style='{StaticResource SummaryRow}'&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;TextBlock HorizontalAlignment="Right"&gt;$5,000,000.00&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Border&gt;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Border Grid.Row="1" Grid.Column="0" Style='{StaticResource SummaryRow}'&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;TextBlock&gt;Revised Contract&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Border&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;Border Grid.Row="1" Grid.Column="1" Style='{StaticResource SummaryRow}'&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;TextBlock HorizontalAlignment="Right"&gt;$6,000,000.00&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Border&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/Grid&gt;<br>&nbsp; <br><br>&nbsp;&nbsp; &lt;/ScrollViewer&gt;<br>&lt;/Page&gt;<br></pre></td></tr></table><br><br>I'd like to be able to highlight an entire row (text &amp; amount in the example above) when the mouse is over any cell on a grid row.<br><br>Thanks for any advice.<br>]]>
   </description>
   <pubDate>Tue, 20 May 2008 22:42:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10708&amp;PID=35499&amp;title=markup-grid-row-background#35499</guid>
  </item> 
 </channel>
</rss>