RadTabControl extra space at bottom issue

2 posts, 0 answers
  1. Lucky
    Lucky avatar
    1 posts
    Member since:
    Nov 2015

    Posted 29 Nov 2015 Link to this post

    I have created gui using radtabcontrol. In it i have added UserControl to RadTabItem using code behind on Tab Selection Changed event. But whenever usercontrol is added, there is extra space at bottom of tab. Please help. I am attaching screen shot below.

    I am using Window8 Theme.


  2. Dinko
    Dinko avatar
    442 posts

    Posted 02 Dec 2015 Link to this post

    Hi Lucky,

    The TabControl's height depends on the height of the selected TabItem. In order to achieve your requirement, you can get the height of the tab item's Content and assign it to the tab control's Height. You can subscribe for the SelectionChanged event of the TabControl and get the selected tab item, then call the Measure() method of the content and get the desired height. I have prepared a sample project where you can see how to implement the desired behavior.

    Give this approach a try and let me know if you need any further assistance.

    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 Feedback Portal and vote to affect the priority of the items
Back to Top