The help file has some UltraWinNavigationBar code sample fragments, and Google found part of what looks to be a larger example (http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Infragistics2.Win.Misc.v8.2~Infragistics.Win.Misc.UltraNavigationBar~SelectedLocationChanged_EV.html). How can I find the actual example on the Infragistics web site? I'm looking for a clean way to build, manage and sync matching hierarchies of UltraWinTree nodes and UltraNavigationBar locations. The differences in how they each deal with their roots is problematic.
Why is there not (or why can't I find) a list of samples for each control? It drives me nuts (some days it's a short trip!) that the Infragistics Windows Forms Sample browser app thingy does not seem to have samples of several of the controls (always the one I need). The search box on the form doesn't seem to help much either: try searching for the WinNavigationBar or NavigationToolbar
ridgeline said:I'm looking for a clean way to build, manage and sync matching hierarchies of UltraWinTree nodes and UltraNavigationBar locations
Thanks for the reply Brian. I'd seen the 'File Explorer' sample under the WinExplorerBar (which wasn't relevant), but totally missed the better 'Infragistics File Explorer' sample under the WinListView.
By forcing a single root node the File Explorer sample avoids the difference in how the WinTree and NavigationBar handle their roots. The WinTree control has a collection of nodes, whereas the NavBar has a rootLocation. It's only an issue when you want to abstract out the loading of both controls with paired objects. I ended up creating NavObjects that hold two-way references with a TreeNode and a NavBarLocation. They also have reference properties into the actual Nodes and Locations collections, and a reference to it's ParentNavObject. This allows multiple first level Objects to add themselves to their parents Nodes and Locations collections. Problem solved.
BTW: The File Explorer sample seems to have a problem with the NavigationToolbar. It seems to be adding double entries into the navigation history.
However... The core if my question was the non-technical part: How should I have found these samples myself? Why does this show up in the Windows Forms Feature Browser only under the WinListView? It's not listed as an example for the WinTree and there is no section for the WinNavigationBar! So is there somewhere else on the web site or help file that connects this 'Infragistics File Explorer' example to these controls?
Bottom line: I'd vote for more resources for creating and communicating non-trivial samples.
Thanks,
Tom
p.s. The code in the link in my first post (and in the help file) is from some other unidentified sample app.
ridgeline said:However... The core if my question was the non-technical part: How should I have found these samples myself? Why does this show up in the Windows Forms Feature Browser only under the WinListView? It's not listed as an example for the WinTree and there is no section for the WinNavigationBar! So is there somewhere else on the web site or help file that connects this 'Infragistics File Explorer' example to these controls?
I should also add that Infragistics employees monitor these forums on an almost daily basis, and any question at all, including "where do I find a sample that demonstrates this control?", can be posted here and you usually do not have to wait that long for an answer.