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

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 7 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 7 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 (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.