Skip to content

Commit 17c5e3c

Browse files
modified changes
1 parent 27c6c0e commit 17c5e3c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Controls/tests/TestCases.HostApp/FeatureMatrix/CollectionView/CollectionViewViewModel.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public enum ItemsSourceType
3030
ObservableCollectionT3,
3131
ObservableCollection5T,
3232
ObservableCollection25T,
33-
ObservableColllectionStringT,
33+
ObservableCollectionStringT,
3434
ObservableCollectionModelT,
3535
EmptyObservableCollectionT,
3636
EmptyObservableCollectionModelT,
@@ -252,7 +252,7 @@ public object ItemsSource
252252
ItemsSourceType.EmptyGroupedListT => _emptyGroupedList,
253253
ItemsSourceType.GroupedListT3 => _groupedList3,
254254
ItemsSourceType.EmptyObservableCollectionT => _emptyObservableCollection,
255-
ItemsSourceType.ObservableColllectionStringT => _observableCollectionString,
255+
ItemsSourceType.ObservableCollectionStringT => _observableCollectionString,
256256
ItemsSourceType.ObservableCollectionModelT => _observableCollectionModel,
257257
ItemsSourceType.GroupedListModelT => _groupedListModel,
258258
ItemsSourceType.ListT => _list,
@@ -675,14 +675,14 @@ public void AddSequentialItem()
675675

676676
string nextItem = ItemsSourceType switch
677677
{
678-
ItemsSourceType.ObservableColllectionStringT or ItemsSourceType.GroupedListT => fruits[fruitIndex++ % fruits.Length],
678+
ItemsSourceType.ObservableCollectionStringT or ItemsSourceType.GroupedListT => fruits[fruitIndex++ % fruits.Length],
679679
ItemsSourceType.ObservableCollectionModelT or ItemsSourceType.GroupedListModelT => groupA[groupAIndex++ % groupA.Length],
680680
_ => string.Empty
681681
};
682682

683683
switch (ItemsSourceType)
684684
{
685-
case ItemsSourceType.ObservableColllectionStringT:
685+
case ItemsSourceType.ObservableCollectionStringT:
686686
_observableCollectionString.Add(new CollectionViewTestItem(nextItem, _observableCollectionString.Count));
687687
break;
688688

@@ -723,7 +723,7 @@ public void RemoveLastItem()
723723
object deletedItem = null;
724724
switch (ItemsSourceType)
725725
{
726-
case ItemsSourceType.ObservableColllectionStringT:
726+
case ItemsSourceType.ObservableCollectionStringT:
727727
if (_observableCollectionString.Count > 0)
728728
{
729729
deletedItem = _observableCollectionString[^1];
@@ -792,7 +792,7 @@ public void AddItemAtIndex(int index)
792792

793793
switch (ItemsSourceType)
794794
{
795-
case ItemsSourceType.ObservableColllectionStringT:
795+
case ItemsSourceType.ObservableCollectionStringT:
796796
if (index >= 0 && index <= _observableCollectionString.Count)
797797
{
798798
_observableCollectionString.Insert(index, new CollectionViewTestItem(sequentialItem, index));
@@ -829,7 +829,7 @@ public void RemoveItemAtIndex(int index)
829829

830830
switch (ItemsSourceType)
831831
{
832-
case ItemsSourceType.ObservableColllectionStringT:
832+
case ItemsSourceType.ObservableCollectionStringT:
833833
if (index >= 0 && index < _observableCollectionString.Count)
834834
{
835835
deletedItem = _observableCollectionString[index];

src/Controls/tests/TestCases.HostApp/FeatureMatrix/CollectionView/ItemsSource/ItemsSourceOptionsPage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private void OnItemsSourceChanged(object sender, CheckedChangedEventArgs e)
3434
if (_viewModel.ItemsSourceStringItems == true)
3535
{
3636
if (radioButton == ItemsSourceObservableCollection)
37-
_viewModel.ItemsSourceType = ItemsSourceType.ObservableColllectionStringT;
37+
_viewModel.ItemsSourceType = ItemsSourceType.ObservableCollectionStringT;
3838
else if (radioButton == ItemsSourceList)
3939
_viewModel.ItemsSourceType = ItemsSourceType.ListT;
4040
else if (radioButton == ItemsSourceGroupedList)

0 commit comments

Comments
 (0)