SelectingItemsControlUpdateSelection(Int32, Boolean, Boolean, Boolean, Boolean, Boolean) Method

Updates the selection for an item based on user interaction.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
protected void UpdateSelection(
	int index,
	bool select = true,
	bool rangeModifier = false,
	bool toggleModifier = false,
	bool rightButton = false,
	bool fromFocus = false
)

Parameters

index  Int32
The index of the item.
select  Boolean  (Optional)
Whether the item should be selected or unselected.
rangeModifier  Boolean  (Optional)
Whether the range modifier is enabled (i.e. shift key).
toggleModifier  Boolean  (Optional)
Whether the toggle modifier is enabled (i.e. ctrl key).
rightButton  Boolean  (Optional)
Whether the event is a right-click.
fromFocus  Boolean  (Optional)
Wheter the event is a focus event

See Also