TreeView.

UpdateSelectionFromEventSource(IInteractive, bool, bool, bool, bool) Method

Summary

Updates the selection based on an event that may have originated in a container that belongs to the control.
Namespace
Avalonia.Controls
Containing Type
TreeView

Syntax

protected bool UpdateSelectionFromEventSource(IInteractive eventSource, bool select = true, bool rangeModifier = false, bool toggleModifier = false, bool rightButton = false)

Parameters

Name Type Description
eventSource IInteractive The control that raised the event.
select bool Whether the container 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
bool True if the event originated from a container that belongs to the control; otherwise false.