I have a xamdatatree that resides in a scrollviewer. Nothing seems to work to scroll to the selected/expanded record in code. any help would be appreciated
Hello Stefan, thanks for your reply.
I test your attached project and still have defect on it.
Seems like it has been fixed in newer version, i have 10.3 version.
So, i found a solution for my situation, if i make data template fixed size defect much hardly revealed
<Menus:NodeLayout.ItemTemplate>
<DataTemplate>
<Grid Height="16" ToolTip="{BindingPath=Data.Title}">
<ContentPresenterContent="{BindingPath=Data.Title}"VerticalAlignment="Center"/>
</Grid>
</DataTemplate>
</Menus:NodeLayout.ItemTemplate>
Thank you for your help
Hello Vladimir,
Thank you for your post. I have been looking into it and modified the sample project following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.
Thanks Stefan, for your timely reply
I make some test on your project and found a reason for this behavior
I change data template of itemnode
<ig:NodeLayout Key="Layout" TargetTypeName="ItemNode" DisplayMemberPath="Title">
<ig:NodeLayout.ItemTemplate>
<Grid ToolTip="{Binding Path=Data.Title}">
<ContentPresenter Content="{Binding Path=Data.Title}" VerticalAlignment="Center"/>
</ig:NodeLayout.ItemTemplate>
</ig:NodeLayout>
So if i make
xamDataTree1.ActiveNode = someNode;(note:"someNode not null and has valid value")
I have Null Refference Exeption inside this function
Tree make some scroll, but it this is not enough to see this item
Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Hellp Elena, cant you help me?
I have a problem with xamdatatree control. When i set active node programmicaly with not large tree(100-200 nodes)
active node doesn't visible after this, it placed some below, if use scroll i can see it. If node, that i activate not far from visible area it work properly, but if if far away set active node not brings into view. I think it depends on panel virtualization. It reprodused only on Win 7. On Xp work propetly any time.
Can you find solution for this or help me turn off virtualization if problem in it.