Small drag drop prob (probably really simple)

邮差的信 提交于 2019-12-13 05:22:05

问题


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



来源:https://stackoverflow.com/questions/8520939/small-drag-drop-prob-probably-really-simple

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!