TabControl Width

2 posts, 1 answers
  1. josephine shirley
    josephine shirley avatar
    10 posts
    Member since:
    Nov 2008

    Posted 20 Aug 2010 Link to this post

    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.
  2. Answer
    Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 20 Aug 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top