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.
Hi Tjark,
Thank you for your post. I was looking into your requirement and I was trying to scroll the XamDataGrid by changing the value of its scrollbar but without any success. I have logged this behavior in our internal tracking system with a Development ID of 186000.The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution. I will leave this case open and update you with this information after the review. You can also continue to send updates to this case at any time.
You can view the status of all development issues connected to this case from the "Development Issues" tab, when viewing this case on the "My Support Requests" page of our website.
XamDataTree ;)
Thanks for your reply.
By the way: If a manual scrolling facility is not an option, I would be just as grateful for a hint on how I can achieve what I described in my first post (drop files from Windows Explorer on specific tree nodes, but scroll the tree during the drag process if the mouse reaches the tree panel boundaries).
I already thought about continuously searching for the next node that would come into into view, then use ScrollNodeIntoView() to actually bring it into view and repeat that process until the user moves the mouse away from the panel boundaries. I haven't tried it though because I doubt that it will result in a smooth scroll animation.