Skip to main content

UpdateSelectionFromContainer Method

Updates the selection for an item based on user interaction.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

protected void UpdateSelectionFromContainer(
Control container,
bool select = true,
bool rangeModifier = false,
bool toggleModifier = false,
bool rightButton = false
)

Parameters

  Control
The container.
  Boolean  (Optional)
Whether the item should be selected or unselected.
  Boolean  (Optional)
Whether the range modifier is enabled (i.e. shift key).
  Boolean  (Optional)
Whether the toggle modifier is enabled (i.e. ctrl key).
  Boolean  (Optional)
Whether the event is a right-click.

See Also

Reference

TreeView Class
Avalonia.Controls Namespace