TreeViewUpdateSelectionFromEventSource Method

Updates the selection based on an event that may have originated in a container that belongs to the control.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
protected bool UpdateSelectionFromEventSource(
	Object eventSource,
	bool select = true,
	bool rangeModifier = false,
	bool toggleModifier = false,
	bool rightButton = false
)

Parameters

eventSource  Object
The control that raised the event.
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.

Return Value

Boolean
True if the event originated from a container that belongs to the control; otherwise false.

See Also