This is a migrated thread and some comments may be shown as answers.

Tab sizes

1 Answer 69 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Kenneth Jackson
Top achievements
Rank 1
Kenneth Jackson asked on 06 Feb 2009, 11:07 AM
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.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 09 Feb 2009, 10:58 AM
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.

Greetings,
Julian Benkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
Kenneth Jackson
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or