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.
Hi,
I don't think the ListView required any code changes on our part to get it to look like the Vista/Windows 7 ListView control. The look can already be achieved using the existing functionality.
Of course, setting all those appearances would be a pain, so we provided an isl file to allow you to apply the Windows 7 look to your entire application. So you might want to try loading the "Windows7.isl" file in your application and see if that gives you what you want.
Thanks for that. Unfortunately I don't seem to have any isl files with my distro (NetAdvantage WinForms 10.2) - the AppStylist directory only has the exe, dll and an icon. Does it only come in the samples download or something?
From your description of what you see, I think you’re looking in the Program Files directory.
The default installation of NetAdvantage 2010 Vol. 2 will put all of the Windows Forms AppStylist isl files here:
C:\Documents and Settings\All Users\Documents\Infragistics\NetAdvantage 2010.2\Windows Forms\AppStylist for Windows Forms\Styles.
Hope that helps.
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.
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.
That would be lovely. Thanks. :)
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
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.