SelectingItemsControlMoveSelection(Control, NavigationDirection, Boolean, Boolean) Method

Moves the selection in the specified direction relative to the specified container.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
protected bool MoveSelection(
	Control? from,
	NavigationDirection direction,
	bool wrap = false,
	bool rangeModifier = false
)

Parameters

from  Control
The container which serves as a starting point for the movement.
direction  NavigationDirection
The direction to move.
wrap  Boolean  (Optional)
Whether to wrap when the selection reaches the first or last item.
rangeModifier  Boolean  (Optional)
Whether the range modifier is enabled (i.e. shift key).

Return Value

Boolean
True if the selection was moved; otherwise false.

See Also