<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://xceed.com/CS/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Xceed DataGrid for WPF</title><link>http://xceed.com/CS/forums/35/ShowForum.aspx</link><description>Community support section for Xceed DataGrid for WPF, Xceed 3D Views for WPF, Xceed Editors for WPF, and Xceed Professional Themes for WPF</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Debug Build: 61120.2)</generator><item><title>Re: Selection changes color with loss of focus</title><link>http://xceed.com/CS/forums/thread/29526.aspx</link><pubDate>Tue, 21 Dec 2010 17:24:57 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:29526</guid><dc:creator>Michel [Xceed]</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/29526.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=35&amp;PostID=29526</wfw:commentRss><description>&lt;P&gt;Hi Bryan,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In regards to that feature request,&amp;nbsp;I currently don't have any time-frame on when it will be implemented, you will however be informed through this thread as soon as it is. &lt;/P&gt;
&lt;P&gt;As a workaround, I have forwarded this to the lead developer of the component, and this is what he suggested: &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY:Verdana, Arial, Helvetica, sans-serif;FONT-SIZE:14px;" class=Apple-style-span&gt;On DataRow there is a property called InactiveSelectionBackground that you can change to what you need.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY:Verdana, Arial, Helvetica, sans-serif;FONT-SIZE:14px;" class=Apple-style-span&gt;However, this property will not work on all themes because some themes uses a visualtree instead of a brush. The customer will have to redo the template. In the Row Template TableflowView you have this trigger that gives the inactive look the customer is trying to get rid off :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY:Verdana, Arial, Helvetica, sans-serif;FONT-SIZE:14px;" class=Apple-style-span&gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp;&amp;lt;!-- This trigger is used to display the Inactive Selection look --&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;MultiDataTrigger&amp;gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;MultiDataTrigger.Conditions&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Condition Binding="{Binding RelativeSource={RelativeSource Self},Path=IsSelected}"&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value="True" /&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Condition Binding="{Binding RelativeSource={RelativeSource Self},Path=(local:DataGridControl.DataGridContext).DataGridControl.IsKeyboardFocusWithin}"&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value="False" /&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Condition Binding="{Binding RelativeSource={RelativeSource Self},Path=(local:DataGridControl.DataGridContext).DataGridControl.HideSelection}"&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value="False" /&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/MultiDataTrigger.Conditions&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Setter TargetName="rowBorder"&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Property="BorderBrush"&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value="{StaticResource inactiveSelectionRowBorderBrush}" /&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Setter TargetName="outerBackground"&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Property="Background"&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value="{StaticResource inactiveSelectionOuterRowBackgroundBrush}" /&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Setter TargetName="innerBackground"&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Property="Background"&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value="{StaticResource inactiveSelectionInnerRowBackgroundBrush}" /&amp;gt;&lt;BR&gt;&lt;BR&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/MultiDataTrigger&amp;gt;&lt;BR&gt;&lt;BR&gt;All The client has to do is copy paste the template from C:\Program Files (x86)\Xceed\Xceed DataGrid for WPF Professional Edition v4.1\Themes\Aero\TableflowView.Aero.normalcolor.xaml&amp;nbsp;&lt;BR&gt;&lt;BR&gt;and remove the trigger mentioned above. If the customer has an issue with missing namespaces, he needs to rename locals: views: markup: to xcdg: .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Selection changes color with loss of focus</title><link>http://xceed.com/CS/forums/thread/29494.aspx</link><pubDate>Thu, 16 Dec 2010 19:53:43 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:29494</guid><dc:creator>Bryan</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/29494.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=35&amp;PostID=29494</wfw:commentRss><description>&lt;P&gt;Please do what you can to promote the&amp;nbsp;feature request&amp;nbsp;to add a flag to force the grid not to use the InactiveSelection look.&lt;/P&gt;
&lt;P&gt;We'd like to avoid making our own changes under the hood that would cause us additional work down stream when we want to move to updated versions of the data grid control.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description></item><item><title>Re: Selection changes color with loss of focus</title><link>http://xceed.com/CS/forums/thread/29405.aspx</link><pubDate>Wed, 08 Dec 2010 19:39:06 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:29405</guid><dc:creator>Xceed admin</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/29405.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=35&amp;PostID=29405</wfw:commentRss><description>&lt;P&gt;Hi Bryan,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;In order to achieve this look, you will need to redo the DataTemplate of the DataRow and change the&amp;nbsp;&lt;SPAN style="FONT-FAMILY:Verdana, Arial, Helvetica, sans-serif;FONT-SIZE:14px;" class=Apple-style-span&gt;inactiveSelectionBackground brush&lt;/SPAN&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, In order to do that, you need to have access to the blueprind edition in order to redo the template and modify the triggers which change the backgrounds.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A feature request has been opened a while back to add a flag to force the grid not to use the InactiveSelection look. However, there is no time frame on when this feature would be implemented.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;In order to have the blueprint edition, you need to contact sales at sales@xceed.com or by phone at 1-800-865-2626 or 450-442-2626&lt;/P&gt;
&lt;P&gt;You can also refer to these forum posts for more information : &lt;BR&gt;&lt;A href="http://xceed.com/CS/forums/post/7417.aspx"&gt;http://xceed.com/CS/forums/post/7417.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://xceed.com/CS/forums/post/7417.aspx"&gt;&lt;/A&gt;&lt;A href="http://xceed.com/CS/forums/thread/18452.aspx"&gt;http://xceed.com/CS/forums/thread/18452.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this answers your question :)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Selection changes color with loss of focus</title><link>http://xceed.com/CS/forums/thread/29393.aspx</link><pubDate>Wed, 08 Dec 2010 01:17:46 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:29393</guid><dc:creator>Bryan</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/29393.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=35&amp;PostID=29393</wfw:commentRss><description>&lt;P&gt;What do I need to do so that the selected row(s)&amp;nbsp;don't change color&amp;nbsp;when the data grid loses focus?&lt;/P&gt;
&lt;P&gt;I'm using Xceed DataGrid for WPF v3.7.10418.1216.&lt;/P&gt;
&lt;P&gt;Here's an example of the current behavior:&lt;/P&gt;
&lt;P&gt;1) Select one or more rows in the data grid.&amp;nbsp; Notice that they are displayed with the selection colors.&lt;/P&gt;
&lt;P&gt;2) Take some action that will move the focus from the data grid, for example clicking on the Windows desktop.&amp;nbsp; The selected rows are repainted and are no longer shown in the selection color.&lt;/P&gt;
&lt;P&gt;3) Take some action that will move the focus back to the data grid without changing the selection, for example clicking on the grid's group by area.&amp;nbsp; Notice that the selected rows are once again displayed using the selection colors.&lt;/P&gt;
&lt;P&gt;What do I need to do so that the selected row(s)&amp;nbsp;don't change color&amp;nbsp;when the data grid loses focus?&amp;nbsp; I would like the selected row to be displayed in using the selection colors even when the grid does not have the focus.&lt;/P&gt;
&lt;P&gt;The current behavior is&amp;nbsp;confusing to users, especially when the user right-clicks on a selected&amp;nbsp;row to display the context menu and the selection seems to disappear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Any help is greatly appreciated.&lt;/P&gt;</description></item></channel></rss>