Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
XamDataTree drag-and-drop question/question about programmatic scrolling
posted

Hello Infragistics,

what would be the best way to achieve the following?

I want to drag file(s) from Windows Explorer over a XamDataTree instance in a WPF app and be able to drop them on specific nodes.
If I move the mouse to the lower or upper edge of the XamDataTree panel, the tree should scroll down or up, respectively, as long as I keep the mouse at that position.

The important part is the second sentence because I couldn't find a suitable method for programmatic scrolling in the XamDataTree library (ScrollNodeIntoView was the only related method that I found).

I figured that I cannot use the Infragistics Drag-and-Drop framework because this only works within the same application.

Note: I am not asking for a ready-made solution (although I wouldn't mind one) because I successfully implemented the same behavior for the standard WPF ListBox recently. My question is mainly about the best way to achieve programmatic scrolling with XamDataTree. I can probably do the rest on my own if I know.

Parents Reply Children
No Data