Introduction
In this article I have taken one list box and bound it with a list item. Then added two buttons in the form to rearrange the list box items up and down.
The XAML code is given below.
To move the list box items up, I have wiriten the following code in the click event of button control in the code behind.
Code behind Code
To move the list box items down, I have wiriten the following code in the click event of the button control in the code behind.
Code behind Code