ScrollingObjectCollection.MoveToIndex(Int32, Boolean, Action) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Moves scroller container to a position where the selected cell is in the first tier of the viewable area.
public void MoveToIndex (int cellIndex, bool animateToPosition = true, Action callback = default);
member this.MoveToIndex : int * bool * Action -> unit
Public Sub MoveToIndex (cellIndex As Integer, Optional animateToPosition As Boolean = true, Optional callback As Action = Nothing)
Parameters
- cellIndex
- Int32
Index of the cell to move to
- animateToPosition
- Boolean
if true, scroller will animate to new position
- callback
- Action
An optional action to pass in to get notified that the ScrollingObjectCollection is finished moving