ItemSelectionChanged
This rule is triggered after the selection state of an item has successfully changed.
This happens when :
- the user clicks on the selection column of row in a data grid
- calling the
SelectAllItemsAsync,SelectItemAsync,UnselectAllItemsAsyncorUnselectItemAsyncmethods
When several items are selected at once, the rule is triggered once per selected item.
See this article for more information on event rules execution order.
Arguments
The Arguments property provides the following options.
| Name | Type | Description |
|---|---|---|
Item |
The type of the UI view model | Instance of the item to whose selection changed. |
Item versus DatasourceCurrent
Item refers to item that has been (un)selected. It is the same as using Arguments.Item.
Important
The current position can be completely different from the position of the item being selected, therefore, never assume that DatasourceCurrent refers to the item being selected.
To know more on the difference between the Item and DatasourceCurrent properties in an UI view event rule, you can check this article.