TreeViewUpdateSelectionFromContainer Method

Updates the selection for an item based on user interaction.

Definition

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

Parameters

container  Control
The container.
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.

See Also