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.
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