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