How to get a listboxitem's visual position in a listbox panel
-
I want to do some drag and copy operation between the listboxitems. But I have no idea about how to get a specific listboxitem's visual position in a listbox panel. Assumpt that the size of each listboxitems are different, we can not get the LEFT property like (listboxitem.Width * (Index-1)). And seems the ListBox.ItemContainerGenerator can not help also. Anyone can give a tips ? :)
-
I want to do some drag and copy operation between the listboxitems. But I have no idea about how to get a specific listboxitem's visual position in a listbox panel. Assumpt that the size of each listboxitems are different, we can not get the LEFT property like (listboxitem.Width * (Index-1)). And seems the ListBox.ItemContainerGenerator can not help also. Anyone can give a tips ? :)