Fixed tool bar

6 posts, 0 answers
  1. JulioR
    JulioR avatar
    26 posts
    Member since:
    Dec 2006

    Posted 07 Dec 2007 Link to this post

    Hi Telerik Team,

    I would like to know how can I recreate the same tool bar than in VS 2005 (i.e. Solution Explorer Panel). I want to disappear the line of points to the left and make the tool bar fixed inside the docked panel.

    Thanks in advance & regards,

    Julio
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 07 Dec 2007 Link to this post

    Hello JulioR,

    Use the following as a solution: 

    1.  Hide the grip element:
      this.radToolStripItem1.Children[2].Visibility = ElementVisibility.Hidden;

    2. Disable dragging of RadToolStripItem: 
    this.radToolStrip1.ToolStripManager.AllowDragging = false;

    3. Hide the overflow button of RadToolStripItem:
     this.radToolStrip1.ToolStripManager.ShowOverFlowButton = false;

    Using this as a guide you should be able to achieve the base functionality of the toolBar in the solution explorer.

    Please contact me if more questions pop up.

     
    All the best,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. JulioR
    JulioR avatar
    26 posts
    Member since:
    Dec 2006

    Posted 10 Dec 2007 Link to this post

    Thanks for the reply,

    This works fine for dissapearing the right things, but now I'm trying to expand the toolbar to fit the content of the parent, and after trying with fitSizeMode and AutoSizeMode properties I can't find the right combination. How can I "dock to bottom" the ToolBarItem to his parent area?

    Thanks again and regards,
    Julio
  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 10 Dec 2007 Link to this post

    Hi JulioR,

    Have you tried to use the Dock property of RadToolStrip? I mean the following:
    1. Create a new instance of RadToolStrip
    2. Add a new instance of RadToolStripElement
    3. Add a new instance of RadToolStripItem to the created RadToolStripElement
    4. Execute the code I've sent you in my last post
    5. Set the Dock property of RadToolStrip to Dock.Bottom
    Let me know if this helps.
     

    Regards,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. JulioR
    JulioR avatar
    26 posts
    Member since:
    Dec 2006

    Posted 10 Dec 2007 Link to this post

    Hi Boyko,

    The radToolStrip control is already docked at the bottom, but the radToolStripElement is not expanded to fit the radToolStrip area, and this is what I need. If you see the VS 2005 Explorer panel, the toolbar is expanded to the parent area.

    Thanks,

    Julio
  7. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 12 Dec 2007 Link to this post

    Hello JulioR,

    We don't have a built-in logic to expand the toolStripItem to its parent area but you can use the MinSize property of RadToolStrip item to achieve this effect. For example:

    this.radToolStripItem1.MinSize = new Size(this.radToolStrip1.Size.Width, 0);

    I hope this helps.

     
    Sincerely yours,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready