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

TabControl Width

1 Answer 101 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
josephine shirley
Top achievements
Rank 1
josephine shirley asked on 20 Aug 2010, 07:09 AM
Hi

Can we set the width of the tabcontrol according to the containter Control?

For eg:
The tab control size should increase according to the usercontrol size.

1 Answer, 1 is accepted

Sort by
0
Accepted
Miro Miroslavov
Telerik team
answered on 20 Aug 2010, 07:15 AM
Hello josephine shirley,

By default the TabControl stretches to fill the Container's size. (no Width/Height or any Alignment property should be set). You can use for example Margin to have an ofset from the Container.
If you need more complicated scenario - you can bind the Width and Height proeprties of the tab to the named container's (using ElementName binding) Widht and Height proeprties and have custom logic in Converter for example.
If you give us more details we can create example for you.

Hope this will help you.

All the best,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TabControl
Asked by
josephine shirley
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Share this question
or