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.
Hello Tjark,
We have shipped out a new service release where your issue is resolved. I'd be glad to find out if you had tested it out and if it had met your requirements.
You can download the Service Releases by logging to our web site and going to Account\My Keys and Downloads.
OK great. Thanks a lot.
Hi Tjark,
Thank you for your reply. Yes, you will be able to do that using our upcoming Service Release.
Let me know, if you need any further assistance on this matter.
Hi Yanko,
am I understanding correctly that I can now simply set the scrollbar position and call InvalidateScrollPanel(bool reset) afterwards to scroll the tree from within my code?
Thanks,
Tjark
Thank you for your reply. Our development team provided a public method to update the nodes panel when setting value for the Scrollbar of the XamDataTree:
InvalidateScrollPanel(bool reset)
which will be available in our upcoming Service Release.
Scrolling the XamDataTree automatically when the file from Windows Explorer is to the lower/upper edge is currently not possible because XamDataTree control use the Infragistics Drag&Drop nad you are using the Microsoft WPF one. My suggestion is to submit a new product idea for this functionality at ) at <http://ideas.infragistics.com>.
There are many benefits to submitting a product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.