Hi guys,
my problem is that a node that becomes active in the XamDataTree is automatically brought into view.
In my case I have a deeply nested tree with scrollbars and when I click a tree node which is only partially visible it jumps into view.This is quite annoying in my case and I want to turn this off. I'd like to have the default behavior that the standard WPF control has: The item gets selected and that's it.
Do you have any advice on how to achieve that?Thanks in advanceSven
Hi anyone out there at Infragistics that can help me?
Have tried to subclass the DataTree and override the "bring into view behavior" but to no avail.This is annoying and I don't want to switch to the WPF default treeviewcontrol :(
Hi SvenG,
I am looking into your problem and will answer you really soon.
Regards,
Nikola.
Thanks Nikola, I am looking forward to your answer.If needed, I can make a small test solution ...
It seems I have found a workaround. I want to share it here In case anybody has a similiar issue.
Derive from XamDataTree and override the method SetActiveNode and set scrollToView to false depending on the action.
protected override void SetActiveNode(XamDataTreeNode node, TreeInvokeAction action, bool scrollToView)
{
if (action == TreeInvokeAction.Click)
scrollToView = false;
}
base.SetActiveNode(node, action, scrollToView);