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

RadTabControl extra space at bottom issue

1 Answer 11 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Lucky
Top achievements
Rank 1
Lucky asked on 29 Nov 2015, 03:20 PM

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.

 

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 02 Dec 2015, 01:32 PM
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.

Regards,
Dinko
Telerik
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
Tags
TabControl
Asked by
Lucky
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or