This seems like it should have such a simple solution, but apparently it doesn't.
I've searched far and wide, and there apparently seems to be no way of adding dotted lines to connect nodes in a TreeView
, unlike the WinForms equivalent.
I've found a number of sources online where people have changed the ControlTemplate to one which has the connecting lines. However, when reading through the comments and discussions they all seem to have problems.
How would I go about changing the ControlTemplate to achieve this?
As promised I wrote the Control Template to make a WPF TreeView look like the Winform TreeView.
You'll find all the code and files here or here !
Enjoy !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With