Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Set default location for UltraNavigationBar
posted

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

 

Parents
No Data
Reply
  • 12773
    Verified Answer
    posted

    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);
    or
    this.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.html
    and the sample form Windows Forms Feature Browser : WinListView – Infragistics File explorer

    I hope this helps.

    Sincerely,
    Dimi
    Developer Support Engineer
    Infragistics, Inc.

Children