Small drag drop prob (probably really simple)

2019-09-15 02:51发布

问题:

I'm dragging an item from a surfacelistbox over something else, let's say for example it's a normal wpf grid - how can I tell where (i.e. what column/row) the item has been dropped on?

Thanks a lot,

Dan

回答1:

Put a Panel inside each cell of your Grid. The drop target will then be one of those panels