Refactoring itemSelectionMode names and adding SingleAlways (#2985)
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>
Mon, 3 May 2021 06:20:21 +0000 (15:20 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 7 May 2021 05:58:58 +0000 (14:58 +0900)
commit1905d94f121b202c1ee95ad281761dd5f53fa4bd
treeec94e1b00579845099a33be18dcb17a42a6394e9
parente21b8a11677ac7f6bf0e6a78201431ffdb924d4b
Refactoring itemSelectionMode names and adding SingleAlways (#2985)

Change names in ItemSelectionMode

SingleSelection and MultipleSelections overlapped "Selection" keyward
with their enum name.
Removing Unnecessary keyward from enum members,
and adding Suppress condition to avoid CA1720 warnings.
Single is class Identifier name but there are no harm to using name
Single in a member of enum.

Single allow deselection by clicking selected item again,
but we have another demands who want to act single selection like radio,
which always have one single selected item after once selected.

this Singlelways for that demands,
even click again on selected item, item will not deselected,
and will not occurs any SelectionChanged events.
src/Tizen.NUI.Components/Controls/RecyclerView/CollectionView.cs
src/Tizen.NUI.Components/Controls/RecyclerView/Item/RecyclerViewItem.Internal.cs
src/Tizen.NUI.Components/Controls/RecyclerView/Item/RecyclerViewItem.cs
src/Tizen.NUI.Components/Controls/RecyclerView/ItemSelectionMode.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/CollectionViewDemo/CollectionViewGridSample.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/CollectionViewDemo/CollectionViewLinearSample.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/CollectionViewDemo/Group/CollectionViewGridGroupSample.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/CollectionViewDemo/Group/CollectionViewLinearGroupSample.cs