Skip to content

Commit

Permalink
row drag/reorder is working again by pressing row header
Browse files Browse the repository at this point in the history
  • Loading branch information
w-ahmad committed Nov 9, 2024
1 parent 8295ef1 commit 3b9ec8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/WinUI.TableView/TableViewRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ protected override void OnContentChanged(object oldContent, object newContent)

protected override void OnPointerPressed(PointerRoutedEventArgs e)
{
base.OnPointerPressed(e);

if (!KeyBoardHelper.IsShiftKeyDown() && TableView is not null)
{
TableView.SelectionStartRowIndex = Index;
Expand All @@ -46,6 +48,8 @@ protected override void OnPointerPressed(PointerRoutedEventArgs e)

protected override void OnPointerReleased(PointerRoutedEventArgs e)
{
base.OnPointerReleased(e);

if (!KeyBoardHelper.IsShiftKeyDown() && TableView is not null)
{
TableView.SelectionStartCellSlot = null;
Expand Down

0 comments on commit 3b9ec8e

Please sign in to comment.