SelectingItemsControl.

UpdateSelection(int, bool, bool, bool, bool) Method

Summary

Updates the selection for an item based on user interaction.

Syntax

protected void UpdateSelection(int index, bool select = true, bool rangeModifier = false, bool toggleModifier = false, bool rightButton = false)

Parameters

Name Type Description
index int The index of the item.
select bool Whether the item should be selected or unselected.
rangeModifier bool Whether the range modifier is enabled (i.e. shift key).
toggleModifier bool Whether the toggle modifier is enabled (i.e. ctrl key).
rightButton bool Whether the event is a right-click.

Return Value

Type Description
void