Extra space around child nodes

I am facing a problem. This is the screenshot:

Why am i getting this extra space around child nodes. here the template of Root node is different from the rest. I have defined two separate templates and applying them at runtime.
Please help me resolving this issue.

Are you using TreeLayout? The spacing between sibling nodes is controlled by the NodeSpacing property.

If go:Part.SelectionAdorned=“True” and the user selects a child node, how large is the selection handle around a child node? I’m wondering if you defined the node to be a lot bigger than it appears.


Thanks for your reply. I figured it out, the problem was at my end. When I used DataTemplate Dictionary, it worked fine!! :)