gong-wpf-dragdrop icon indicating copy to clipboard operation
gong-wpf-dragdrop copied to clipboard

Orientation priority handling in 2D lists or grids

Open hahagu opened this issue 2 years ago • 0 comments

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, image 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:

  1. Create a two-dimensional grid/list.
  2. Attach the dragdrop handler.
  3. Move a drag-droppable object around to see behavior.

Desktop (please complete the following information):

  • OS: Windows 11
  • Version 21H2

hahagu avatar May 20 '22 19:05 hahagu