I see the following behavior with WPF Datagrid. When there are more items, then vertical scrolling is available for the height of the viewport. When I click on the last line in a view, it scrolls automatically, where a line appears that was just below the last.
The first column of a datagrid is a checkbox. When the user clicks on this last line, I do not receive the event for clicks. The checkboxes in all other lines work fine.
I want to disable automatic scrolling, but can't figure out how to do this.
<Style x:Key="SingleClickEditing" TargetType="{x:Type toolkit:DataGridCell}"> <EventSetter Event="CheckBox.Checked" Handler="OnChecked"/> <EventSetter Event="CheckBox.Unchecked" Handler="OnChecked"/> </Style>
source share