SelectingItemsControlUpdateSelection(Control, Boolean, Boolean, Boolean, Boolean, Boolean) Method

Updates the selection for a container based on user interaction.

Definition

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

Parameters

container  Control
The container.
select  Boolean  (Optional)
Whether the container 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