I have a scrollviewer that contains a XamDataGrid filled with selectable cells. Each cell has a text searchable dropdown menu. Clicking on a cell in the text field opens a popup with a list of items to be added to the cell. When selecting a cell that is partially in view, the cell scrolls into view and the popup opens on the cell below the one that moved into view. The cell is moved on mouse down and the popup opens on mouse up.
Is there a way to disable this auto scroll to mitigate this issue?
Hello Zachary,
No, there is no way to disable the auto scrolling.
Cells partially out of view will be attempted to be scrolled into view when they become activated. The only way to prevent this scrolling is to prevent activation. However this may or may not be a viable solution. At this time I need to do some more research to figure out if there is a better approach.
I attached a sample that hooks the PreviewMouseDown event, mark e.Handled = true in a DataRecordPresenter style to prevent auto scrolling.
Let me know if you have any questions.
PreventAutoScrolling.zip
Hey Michael,