Hi,
I used a Listbox with a WrapPanel in an ItemsPanelTemplate, like this :
I used the RadDragAndDropManager.
I have a ListBox with an average of 150-200 items, and I want to drag and drop items in my ListBox to reorder them. I want to move an item and that the scrollbar move automaticaly itself. I use the AutoBringIntoView property but it don't work in my case.
This is my code-behind :
Audrey
I used a Listbox with a WrapPanel in an ItemsPanelTemplate, like this :
<
ListBox
x:Name
=
"ProgrammingBox"
SelectionMode
=
"Extended"
>
<
ListBox.ItemsPanel
>
<
ItemsPanelTemplate
>
<
toolkit:WrapPanel
/>
</
ItemsPanelTemplate
>
</
ListBox.ItemsPanel
>
</
ListBox
>
I used the RadDragAndDropManager.
I have a ListBox with an average of 150-200 items, and I want to drag and drop items in my ListBox to reorder them. I want to move an item and that the scrollbar move automaticaly itself. I use the AutoBringIntoView property but it don't work in my case.
This is my code-behind :
RadDragAndDropManager.AddDropQueryHandler(ProgrammingBox,
new
EventHandler<DragDropQueryEventArgs>(OnDropQuery));
RadDragAndDropManager.AddDragQueryHandler(ProgrammingBox,
new
EventHandler<DragDropQueryEventArgs>(OnDragQuery));
RadDragAndDropManager.AddDropInfoHandler(ProgrammingBox,
new
EventHandler<DragDropEventArgs>(OnDropInfo));
RadDragAndDropManager.AddDragInfoHandler(ProgrammingBox,
new
EventHandler<DragDropEventArgs>(OnDragInfo));
RadDragAndDropManager.AutoBringIntoView =
true
;
Audrey