I have a situation in which I am dragging/dropping nodes between two XamDataTrees.
Because my source tree contains many nodes, the auto-scroll feature is enabled. And when I attempt to drag/drop my selected node to my target tree, my source tree begins to scroll until it reaches the top of the tree, then it releases and I am able to drop my node on the target tree.
In this case I would like to disable scrolling on the source tree until my drag/drop operation is complete, but I haven't yet found a way to do this.
Does anyone know how to disable auto-scrolling during a drag/drop operation on the XamDataTree?
Thanks,
John
I've tried doing something like the following in the DraggingStart event:
ScrollViewer.SetVerticalScrollBarVisibility(myDataTree, ScrollBarVisibility.Disabled);
But the layout is not updated since the drag/drop is happing in a different thread (?).
Do you know of a way to freeze the control UI using standard SL methods?
I was afraid of that.
Currently I don't think there is much you can do in that case. When you are dragging a node and above or below the tree the tree sets itself up to auto scroll. This looks like something we would have to add to the control, the ability to prevent auto scrolling on a tree.
I will have our DS staff put a feature request in for this.
My tree views are vertically stacked. Thanks.
Are the trees vertically oriented or side by side?
Yes, to my knowledge I am running the latest SR (2115).