Moving ListBoxItem Up/Down in WPF
I've created a listbox which contain filenames. I want to give user a option to move up and down file name using up/down button and using drag and drop.

Anyone has an idea how to achieve this functionality.

XAML Code:

    <ListBox
    	Grid.Column="0"
    	Name="listBox1"
    	AllowDrop="True"
    	Drop="listBox1_Drop"
    </ListBox>
    <StackPanel
    	Grid.Column="1"
    	HorizontalAlignment="Stretch"
    	VerticalAlignment="Center">
    	<Button
    		Name="moveUp"
    		Content="Ç"
    		FontFamily="Wingdings 3"
    		Margin="3,3,3,3"
    		Click="moveUp_Click" />
    	<Button
    		Name="moveDown"
    		FontFamily="Wingdings 3"
    		Content="È"
    		Margin="3,3,3,3" />
    </StackPanel>

Moving ListBoxItem Up/Down in WPF
===

I've created a listbox which contain filenames. I want to give user a option to move up and down file name using up/down button and using drag and drop.

Anyone has an idea how to achieve this functionality.

XAML Code:

    <ListBox
    	Grid.Column="0"
    	Name="listBox1"
    	AllowDrop="True"
    	Drop="listBox1_Drop"
    </ListBox>
    <StackPanel
    	Grid.Column="1"
    	HorizontalAlignment="Stretch"
    	VerticalAlignment="Center">
    	<Button
    		Name="moveUp"
    		Content="Ç"
    		FontFamily="Wingdings 3"
    		Margin="3,3,3,3"
    		Click="moveUp_Click" />
    	<Button
    		Name="moveDown"
    		FontFamily="Wingdings 3"
    		Content="È"
    		Margin="3,3,3,3" />
    </StackPanel>
