Is there any way to turn off the mouse over animation in XamlDataGrid?
Many Thanks
Toshendra
Hello,
Yes, the approach described here is a quick way to modify specific colors. And the caveat is you cannot use Themes with this approach because the Theme takes precendence when it sets brushes.
The following blog goes into detail how to affect colors in a Theme in a way that works with built in theming.
http://blogs.infragistics.com/blogs/kiril_matev/archive/2010/09/28/ultimate-infragistics-wpf-line-of-business-applications-theming-styling-by-the-end-user-at-runtime.aspx
Matev also has a couple of blogs about resource washing which is another approach. However, these approaches do not work with XamDataGrid Themes.
http://community.infragistics.com/blogs/kiril_matev/archive/2010/09/03/theming-your-infragistics-wpf-line-of-business-applications-quick-and-customizable.aspx
http://blogs.infragistics.com/blogs/kiril_matev/archive/2010/08/30/theming-your-infragistics-wpf-line-of-business-applications-made-quick-and-easy.aspx
I've attached an update of the first blog sample source to work with 10.3.
But theme override these settings. Is there any solution usable with theme support??
I've updated and attached Alex's code which demonstrates how to disable the mouse hover animation on a record to work with Visual Studio 2010 and NetAdvantage 2010.3.
:-)
Hi Kyryll
I believe you might be looking for the Alternating color? If so, you can change that with the "BackgroundAlternate" property on the DataRecordCellArea.
<Style TargetType="{x:Type igDP:DataRecordCellArea}">
<Setter Property="BackgroundAlternate" Value="#FFEBEBEB"/>
</Style>
Does this help?
Actually I just had a look and saw that there is already a "state" for the record thats active in an inactive grid. I just need to retemplate it so that it doesnt look like the "Alternating" grey record.
Whats the name of the brush that used for this? (Office2kBlack theme)
Chhers,
Kyryll