Skip to content
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

Add Property "SourceIndex" also to IDragInfo (same as in IDropInfo) #71

Closed
knoxi opened this issue Aug 14, 2013 · 0 comments
Closed

Add Property "SourceIndex" also to IDragInfo (same as in IDropInfo) #71

knoxi opened this issue Aug 14, 2013 · 0 comments

Comments

@knoxi
Copy link

knoxi commented Aug 14, 2013

Changes in IDragInfo:

        /// <summary>
        /// Gets the position from where the item was dragged.
        /// </summary>
        int SourceIndex { get; }

Changes in DragInfo:

        /// <summary>
        /// Gets the position from where the item was dragged.
        /// </summary>
        /// <value>The index of the source.</value>
        public int SourceIndex { get; private set; }

add following code in the statement "if (itemParent != null)":

this.SourceIndex = itemParent.ItemContainerGenerator.IndexFromContainer(item);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant