Class
KeyboardNavigation

Represents a keyboard navigation helper.

Definition

Namespace:Telerik.Windows.Controls.Primitives

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class KeyboardNavigation

Inheritance: objectKeyboardNavigation

Constructors

KeyboardNavigation(IListControl, Func<int, bool>)

Initializes a new instance of the KeyboardNavigation class.

Declaration

cs-api-definition
public KeyboardNavigation(IListControl control, Func<int, bool> isSelectableIndex)

Parameters

control

IListControl

isSelectableIndex

Func<int, bool>

Properties

IsSelectableIndex

Gets or sets whether the index is selectable.

Declaration

cs-api-definition
public Func<int, bool> IsSelectableIndex { get; set; }

Property Value

Func<int, bool>

Methods

GetNextSelectableIndex(int, int)

Gets the next index of an item which is selectable.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public int GetNextSelectableIndex(int current, int skip = 1)

Parameters

current

int

skip

int

Returns

int

GetPreviousSelectableIndex(int, int)

Gets the previous index of an item which is selectable.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public int GetPreviousSelectableIndex(int current, int skip = 1)

Parameters

current

int

skip

int

Returns

int

NavigateFirst(Key)

Navigates to the first item in the child collection.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "key")]
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public void NavigateFirst(Key key = 0)

Parameters

key

Key

NavigateLast(Key)

Navigates to the last item in the child collection.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public void NavigateLast(Key key = 0)

Parameters

key

Key

NavigateNext(int, int, Key)

Navigates to the next item in the child collection.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public void NavigateNext(int startIndex, int increment, Key key = 0)

Parameters

startIndex

int

increment

int

key

Key

NavigatePrevious(int, int, Key)

Navigates to the next item in the child collection.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public void NavigatePrevious(int startIndex, int increment, Key key = 0)

Parameters

startIndex

int

increment

int

key

Key

NavigateToIndex(int, Key)

Navigates to item using its index in the child collection.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public void NavigateToIndex(int index, Key key = 0)

Parameters

index

int

key

Key