Skip to content

Commit

Permalink
fix: fixed the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vatsashah45 committed Aug 22, 2024
1 parent 4e4abde commit 77ad90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Controls/ListViewBase/ListViewBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ internal override void OnItemClicked(int clickedIndex, VirtualKeyModifiers modif

void SingleSelectionCase()
{
//Verifying if the ItemsSource is a CollectionView and not ISelectionInfo
//Making sure that the ItemsSource is a CollectionView and not ISelectionInfo as it breaks the selection logic
if (ItemsSource is ICollectionView collectionView and not ISelectionInfo)
{
//NOTE: Windows seems to call MoveCurrentTo(item); we set position instead to have expected behavior when you have duplicate items in the list.
Expand Down

0 comments on commit 77ad90b

Please sign in to comment.