Skip to content

Commit

Permalink
Show selected items size details when selecting by dragging the mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKordiukiewicz committed May 31, 2022
1 parent 2025184 commit eca42f4
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -92,6 +92,18 @@ private void RectangleSelection_PointerMoved(object sender, PointerRoutedEventAr
var scrollIncrement = Math.Min(20 - currentPoint.Position.Y, 40);
scrollViewer.ChangeView(null, verticalOffset - scrollIncrement, null, false);
}

if (selectionChanged != null)
{
// Restore and trigger SelectionChanged event
uiElement.SelectionChanged -= selectionChanged;
uiElement.SelectionChanged += selectionChanged;
if (prevSelectedItems == null || !uiElement.SelectedItems.SequenceEqual(prevSelectedItems))
{
// Trigger SelectionChanged event if the selection has changed
selectionChanged(sender, null);
}
}
}
}

Expand Down

0 comments on commit eca42f4

Please sign in to comment.