gong-wpf-dragdrop
gong-wpf-dragdrop copied to clipboard
Orientation priority handling in 2D lists or grids
Describe the bug In a 2D list, such as HandyControl's FlexPanel, or the UniformGrid, the position of the adorner is set by the closest element. However, in some cases, it is preferable to make horizontal plane or vertical plane take priority in terms of closest-ness.
For example,
If a user were to drag and drop a control into the cursor position, it'd be preferrable for the control to be dropped next to p8 instead of where the adorner is now. However, this is not the behavior as of now.
Is there a way to do this currently? Thanks.
To Reproduce Steps to reproduce the behavior:
- Create a two-dimensional grid/list.
- Attach the dragdrop handler.
- Move a drag-droppable object around to see behavior.
Desktop (please complete the following information):
- OS: Windows 11
- Version 21H2