Skip to content

Conversation

@jankrib
Copy link

@jankrib jankrib commented Dec 26, 2015

This makes it possible to override which direction drag and drop works in.

jankrib and others added 3 commits December 26, 2015 10:50
This makes it possible to override which direction drag and drop works in.
@punker76
Copy link
Owner

punker76 commented Aug 4, 2016

@jankrib Sorry for the very very late response... but is this property really necessary? Can you give me a nice sample? Thx!

@jankrib
Copy link
Author

jankrib commented Aug 16, 2016

We needed it because we used gong drag drop on a grid. It is not clear for gong which direction to work on. This allowed us to have reordering of columns and rows in a table, but we needed this for it to work in both directions.

Could be that this is a special case, but I don't see any downside with allowing direction to be explicitly set.

@punker76 punker76 changed the base branch from master to dev August 20, 2016 12:41
/// <summary>
/// Gets the index of the target item within <see cref="TargetCollection"/>.
/// </summary>
public int TargetIndex { get; private set; }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this? It's the same as InsertIndex.

punker76 added a commit that referenced this pull request Aug 23, 2016
  This property allows the user to force the Orientation of the ItemsControl (ItemsPanel)
  Taken from #155 by @jankrib
@punker76 punker76 mentioned this pull request Aug 23, 2016
7 tasks
Content elements such as runs within textblocks could not be used as drop target items,
because they are not UIElements. This patch provides a way to use ContentElements as
drop target items.
@jankrib jankrib closed this Aug 31, 2016
laurenBokelaa added a commit to laurenBokelaa/pf2etools that referenced this pull request Sep 10, 2025
  This property allows the user to force the Orientation of the ItemsControl (ItemsPanel)
  Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
marcuswoKins added a commit to marcuswoKins/Qwen that referenced this pull request Sep 12, 2025
  This property allows the user to force the Orientation of the ItemsControl (ItemsPanel)
  Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
1sjohnson added a commit to 1sjohnson/improlla that referenced this pull request Sep 20, 2025
  This property allows the user to force the Orientation of the ItemsControl (ItemsPanel)
  Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
FHugoVoss added a commit to FHugoVoss/sotipy that referenced this pull request Sep 24, 2025
  This property allows the user to force the Orientation of the ItemsControl (ItemsPanel)
  Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
fernandosse added a commit to fernandosse/ewebview that referenced this pull request Oct 6, 2025
  This property allows the user to force the Orientation of the ItemsControl (ItemsPanel)
  Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
cocos41d added a commit to cocos41d/urban that referenced this pull request Nov 24, 2025
  This property allows the user to force the Orientation of the ItemsControl (ItemsPanel)
  Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants