WPF Infragistics XamDataGrid Theft Scrolling Focus

I am using Infragistics XamDataGrid inside a control using a scroll bar. The parent control has several other controls inside it, and I need to be able to scroll freely inside the parent control. However, whenever the mouse freezes over the XamDataGrid, the XamDataGrid steals the parent focus and locks the scroll bar of the parent control.

I looked at the XamDataGrid documentation

And I played with several properties. Setting the Focusable property to false did not fix the problem. Setting the IsEnabled property to false worked, but turned off the entire grid and prevented any interaction with the grid (duh).

Is there a way to remove / disable the XamDataGrid scroll functions to allow its parent to scroll freely without changing other XamDataGrid functions (i.e. without disabling the interaction with the grid completely)?

Edit:

What really intrigues me about this problem is that it does not seem to be isolated only from XamDataGrid. I found that the Infragistics controls have a thing to steal focus when they don’t need it, and such interference.

Of course, many of these problems can probably be fixed on the basis of control control, but I cannot shake the feeling that there is some better comprehensive solution, especially if combing the control properties does not give the desired results.

+6
source share
1 answer

Apparently, XamDataGrid implements ScrollView, which catches scrolling events, a workaround is to pass these events to the parent ScrollView through the event handler.

Infragistics support has suggested a way to do this: http://www.infragistics.com/community/forums/p/107444/506422.aspx#506422

0
source

All Articles