Skip to main content

MoveSelection(NavigationDirection, Boolean, Boolean) Method

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

Definition​

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

protected bool MoveSelection(
NavigationDirection direction,
bool wrap = false,
bool rangeModifier = false
)

Parameters​

  NavigationDirection
The direction to move.
  Boolean  (Optional)
Whether to wrap when the selection reaches the first or last item.
  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​

Reference​

SelectingItemsControl Class
MoveSelection Overload
Avalonia.Controls.Primitives Namespace