Displaying Connecting Lines in TreeView (SL & WPF)

The ability to show connecting lines between parent-child node is pretty useful and definitely gives a better representation in case of large data. TreeView controls over some platforms have ShowLines property which user can set to see the connecting lines automatically. SL/WPF C1TreeView controls don't expose these properties in a straight way as you have a lot more control over the entire look and feel of the control and that's the power of xaml :) Now, to achieve a similar connecting lines with C1TreeView, you have to edit the default template and add required elements (rectangles) in the template. Check the attached sample with required styles. Download Sample

GrapeCity

GrapeCity Developer Tools
comments powered by Disqus