ThemedDataGrid Turn off cell 'HotTracking' when SelectionUnit="FullRow"

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 2 years ago by keepITcool - Amsterdam
Version: 16.1.0634
Avatar

I've got a themed datagrid where I have the selectionUnit=FullRow.

All my cells are readonly but I still see the default "hottracking" when the mouse is over a cell.
Is there a simple way to turn this off? Other than mucking with the MouseOver triggers in the DataGridCell style?

I expected it to be influenced by:
datagrid:FocusBehavior.TrackingModes="None"
datagrid:SelectionBehavior.TrackingModes="None"

alas, no go

 

Thanks in advance, Jurgen

Comments (1)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Jurgen,

You would probably need to alter the default DataGridCell style's triggers to accomplish that.  You can find its source here:

http://actipro.codeplex.com/SourceControl/latest#WPF/Source/DataGrid.Contrib/Themes/Includes/Styles/DataGrid.xaml

If you clone that style and put the updated version in your Application.Resources, it should take effect.


Actipro Software Support

The latest build of this product (v2019.1 build 0681) was released 9 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.