-
Notifications
You must be signed in to change notification settings - Fork 418
Add Orientation as attached property #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This makes it possible to override which direction drag and drop works in.
…nings + Fix minor XML-documentation error
|
@jankrib Sorry for the very very late response... but is this property really necessary? Can you give me a nice sample? Thx! |
|
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. |
| /// <summary> | ||
| /// Gets the index of the target item within <see cref="TargetCollection"/>. | ||
| /// </summary> | ||
| public int TargetIndex { get; private set; } |
There was a problem hiding this comment.
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.
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.
This property allows the user to force the Orientation of the ItemsControl (ItemsPanel) Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
This property allows the user to force the Orientation of the ItemsControl (ItemsPanel) Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
This property allows the user to force the Orientation of the ItemsControl (ItemsPanel) Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
This property allows the user to force the Orientation of the ItemsControl (ItemsPanel) Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
This property allows the user to force the Orientation of the ItemsControl (ItemsPanel) Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
This property allows the user to force the Orientation of the ItemsControl (ItemsPanel) Taken from punker76/gong-wpf-dragdrop#155 by @jankrib
This makes it possible to override which direction drag and drop works in.