I notice that sometimes the Mousedown works correctly by selecting the cell being clicked.
Other times, it will scroll back to the top.
I've attempted to add the following code to handle tho Mouse Left Button, and it builds, but doesn't compile.
In constructor:
gridLineItem.MouseLeftButtonDown += new MouseButtonEventHandler(gridLineItem_MouseDown);
And later on:
private void gridLineItem_MouseDown(object sender, MouseEventArgs e)
{
var foo = 42;
}
If I add a debugger breakpoint inside gridLineItem_MouseDown, it doesn't fire.
The goal is to have the Mouse Left Button consistently select the cell clicked on, and not to scroll to the top.
Any suggestions?