TreeView / TreeViewItem ControlTemplates with Dashed Lines

It seems he should have such a simple solution, but apparently this is not so.

I searched around the world, and there seems to be no way to add dashed lines to connect nodes in a TreeView , unlike the WinForms equivalent.

I found several sources on the Internet where people changed the ControlTemplate to one that has trunks. However, everyone seems to have problems reading the comments and discussions.

How can I change the ControlTemplate for this?

+7
source share
1 answer

As promised, I wrote a control template to make WPF TreeView look like Winform TreeView.

You will find all the code and files here or here !

Enjoy it!

enter image description here

+9
source

All Articles