Hi, I have implemented the sample WinListView (Infragistics File Explorer) and it works great. However, I am struggling to set the start location to anything other than 'Desktop'. How do I set the initial location to something else - e.g. C;\Drivers\Files?
Thanks, Mick
Hello Mick,
You can just set the text to the root location if what path you need like this:
UltraNavigationBarLocation myRootLocation = this.ultraNavigationBar1.RootLocation; myRootLocation.Key = @"C:\Work\WpfApplication1"; myRootLocation.Text = @"C:\Work\WpfApplication1";
also you can navigate to the path you need using :
this.ultraNavigationBar1.RootLocation.Text = @" C:";this.ultraNavigationBar1.NavigateTo(@"C:\work\tree", true);orthis.ultraToolbarsManager1.NavigationToolbar.NavigateTo(@"C:\work\WpfApplication1", null);
You can see more details in our online help :http://help.infragistics.com/NetAdvantage/WinForms/2010.2/CLR2.0/?page=WinNavigationBar_Browsing_the_File_System_with_WinNavigationBar.htmland the sample form Windows Forms Feature Browser : WinListView – Infragistics File explorer
I hope this helps.
Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Thanks Dimi,
This did the trick (this.ultraNavigationBar1.NavigateTo(@"C:\work\tree", true);)
I tried "myRootLocation.Key = @"C:\Work\WpfApplication1";" but that got thrown out at runtime with an error re: using "\" in the key. No worries though as the other solution is doing exactly what I need.
thanks again.
Mick
Hello,
Since you have asked same question in a separate thread:
http://ko.infragistics.com/community/forums/t/83175.aspx
I will answer to your question trough the mentioned thread.
What I'm wanting to do this isn't working for me. For example, I'd like to set the RootLocation of the WinNavigationBar to something else, such as E:\TEMP\FOLDER1.
As in this example code, if I modify the RootLocation, I get a parsing error if anything other than a root drive location.
http://ko.infragistics.com/help/topic/B473B8A6-8954-48D7-930F-DDBB1D9E6111
How can you go about setting a location like E:\TEMP\FOLDER1 as the root location of the WinNavigationBar, so that you cannot see anything below the heirarchy of E:\TEMP\FOLDER1? I just can't get past a parsing error, and I've not found a working example. Thank you!!!