IMenuElement.

MoveSelection(NavigationDirection, bool) Method

Summary

Moves the submenu selection in the specified direction.
Namespace
Avalonia.Controls
Containing Type
IMenuElement

Syntax

bool MoveSelection(NavigationDirection direction, bool wrap)

Parameters

Name Type Description
direction NavigationDirection The direction.
wrap bool Whether to wrap after the first or last item.

Return Value

Type Description
bool True if the selection was moved; otherwise false.