METHOD
ObservableCollection<T>.Move
Moves the existing element to the specified final index, shifting other elements as necessary. Indices must be valid; collection observers receive a move notification. Does not clone the element.
Formal Syntax & Structure
csharp syntaxcsharp
items.Move(oldIndex,newIndex)Working Example
Example Snippetcsharp
using System;using System.ComponentModel;using System.Collections.ObjectModel;using System.Windows.Input;var items=new ObservableCollection<string>{"A","B","C"}; items.Move(0,2); Console.WriteLine(string.Join(",",items)); // B,C,A