You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/helpers/itemsrepeater-extensions.md
+12
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,14 @@ Provides selection support for `ItemsRepeater`.
7
7
## Properties
8
8
Property|Type|Description
9
9
-|-|-
10
+
IsSelectionHost|bool|Used to mark an element within the ItemsRepeater.ItemTemplate to be the host control that will handle the selection.\*
10
11
SelectedItem|object|Two-ways bindable property for the current/first(in Multiple mode) selected item.\*
11
12
SelectedIndex|int|Two-ways bindable property for the current/first(in Multiple mode) selected index.\*
12
13
SelectedItems|IList\<object>|Two-ways bindable property for the current selected items.\*
13
14
SelectedIndexes|IList\<int>|Two-ways bindable property for the current selected indexes.\*
14
15
SelectionMode|ItemsSelectionMode|Gets or sets the selection behavior: `None`, `SingleOrNone`, `Single`, `Multiple` <br/> note: Changing this value will cause the `Selected-`properties to be re-coerced.
16
+
UseNestedSelectionHost|bool|Used to signal a selection-host should be found in the ItemTemplate, and it would replace the item template root.\*
17
+
15
18
16
19
### Remarks
17
20
-`Selected-`properties only takes effect when `SelectionMode` is set to a valid value that is not `None`.
@@ -21,6 +24,14 @@ SelectionMode|ItemsSelectionMode|Gets or sets the selection behavior: `None`, `S
21
24
-`SingleOrNone`: Up to one item can be selected at a time. The current item can be deselected.
22
25
-`Single`: One item is selected at any time. The current item cannot be deselected.
23
26
-`Multiple`: The current item cannot be deselected.
27
+
- Use `IsSelectionHost` and `UseNestedSelectionHost` when the target of selection cannot be the root element of the ItemTemplate:
0 commit comments