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,
I looked into this a bit more and it looks like I was wrong - there are a few features that the ListView currently does not have in order to get the Vista/Windows 7 style. Hopefully, these can be added in a future release.
I'm not sure what you mean about the borders - I don't see any borders in the list portion of Windows Explorer, unless you mean when the items are hot-tracked.
Perhaps you could post a screen shot of what you are trying to do and we can see if we can find out how to do it if it's possible.
Ah yes, thanks for that. Found it.
Unfortunately that doesn't really get me quite there. The Windows 7 items have borders, whereas the ListView ones do not, dispite the Appearances having border colour options. There also doesn't seem to be any way to add padding to space the items further apart (other than changing the image size, but this then stretches the image). I managed to get around the hot-tracking appearing darker when tracking over selected items by dynamically updating it depending whether the cursor is over a selected item. But surely this is all stuff that the control should be doing?
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.
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?
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.