Tab sizes

2 posts, 0 answers
  1. Kenneth Jackson
    Kenneth Jackson avatar
    60 posts
    Member since:
    Dec 2007

    Posted 06 Feb 2009 Link to this post

    I would like to use 32 x 32 icons in each document tab in my docking manager.
    How do I resize the tabs so that they are capable of containing the icons ?

    At the moment this is just for the icons but the question really pertains to how to alter
    the predefined tab sizes to fit whatever else it is I may want to fit in them.
  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 09 Feb 2009 Link to this post

    Hello Kenneth Jackson,

    You can access TabStripElement from the DocumentPresenterControl and change its properties or Items collection. Please see the examples for RadTabStrip in our demo application. Here is some sample code:

    private void button2_Click(object sender, EventArgs e) 
        if (this.dockingManager1.Documents.Count > 0) 
            DocumentPresenterControl ctrl = this.dockingManager1.Documents[0].DefaultPresenter as DocumentPresenterControl; 
            if (ctrl != null
                RadTabStripElement tabStrip = ctrl.DocumentPresenterElement.TabStripElement; 
                //change properties of TabStripElement or Items collection 

    Do not hesitate to write me back if you have further questions.

    Julian Benkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
Back to Top