Basic Library for WPF and Silverlight | ComponentOne
C1.WPF Namespace / C1ComboBox Class / MoveListBox Method
Key that was pressed.
index that is currently selected.
The new selected index.

In This Topic
    MoveListBox Method (C1ComboBox)
    In This Topic
    Get the next item in the ListBox when a key is pressed. You may override this to implement your own keyboard selection strategy.
    Syntax
    'Declaration
     
    
    Protected Overridable Function MoveListBox( _
       ByVal key As Key, _
       ByVal index As Integer, _
       ByRef newIndex As Integer _
    ) As Boolean
    protected virtual bool MoveListBox( 
       Key key,
       int index,
       out int newIndex
    )

    Parameters

    key
    Key that was pressed.
    index
    index that is currently selected.
    newIndex
    The new selected index.

    Return Value

    True if it is a handled key.
    See Also