What's the easiest way to get a tree looking exactly like the Windows 7 Explorer tree? This has icons next to the expandable folders - but only when the window has focus. All highlights full the whole width of the tree, not just the node text. The hot-track is a light gradient. Selected lines are slightly darker, and hottrack over a selected node is darker still. I can't seem to get this setup exactly. The hot-track Infragistics control seems to take precendence over a selected node, so when hovering over the node, you can't tell that it's selected. Also, I can't seem to get expansion indicators if I want fullrowselect.Also, the Windows tree doesn't seem to have an Active node (the one with the dotted line around it). How can I hide this?Is there an easy way to get my tree to look exactly like the Windows one, or do I just have to fiddle with all the settings to get an approximation?Thanks,Campbell
Hi Campbell,
The Windows 7 tree looks just like the Windows Vista tree. As far as I know, there are no changes to the tree in Windows 7.
So just set the DisplayStyle property on the tree to WindowsVista.
For the files side of the tree, UltraWinListView seems the obvious choice. Unfortunately this doesn't have a DisplayStyle property to give it the WindowsVista look. Is this something that might be planned for the future? Any way you can think of to get a Vista look for the files section?
Thank.
Here, you can see on the left-hand side the tree control. Each node in the tree is shaded in light blue, with a slightly darker blue border around it. On the right-hand side are two ultralistview controls. I have matched the colours of the selected (and inactive selected) rows to that of the tree. But I can't get it to look exactly the same, because the spacing of the list items are closer, and also there is no border on the list items.
Ordinarily I could live with this, but because the shadings are really quite light in colour, some users may find it difficult to tell which items are selected and which are not without the darker border around the items.
Hi,
Looks like we need to create a Feature Request to add Window7 styling to the ListView. If you don’t mind I will connect this thread to a case so that you can track the Feature Request.
Marianne
That would be lovely. Thanks. :)
I took a look at trying to get the ListItems to draw borders and I could not get it to work. It looks like this is simply not supported, although, I am not sure why. Usually, borders are turned off on items like this by setting the BorderElementAlpha to Transparent. That way, there are no borders, but you still have the option to turn them on if you want. But that doesn't seem to be the case here.
I think this is a bug, so I'm going to have this written up so it can be looked into.
Mike asked me to log a development issue for you concerning the borders for the selected listItems of the WinTree.
You’ll be able to track the issue thru your case.
You’ll hear from me shortly via the case concerning my progress.