From 77ad90b5ad86d4135f6911256779f87d6cbdfc1f Mon Sep 17 00:00:00 2001 From: vatsashah45 Date: Thu, 22 Aug 2024 17:29:19 -0400 Subject: [PATCH] fix: fixed the comment --- src/Uno.UI/UI/Xaml/Controls/ListViewBase/ListViewBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI/UI/Xaml/Controls/ListViewBase/ListViewBase.cs b/src/Uno.UI/UI/Xaml/Controls/ListViewBase/ListViewBase.cs index 6e644cd847db..b6fbe597f0f0 100644 --- a/src/Uno.UI/UI/Xaml/Controls/ListViewBase/ListViewBase.cs +++ b/src/Uno.UI/UI/Xaml/Controls/ListViewBase/ListViewBase.cs @@ -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.