Unplanned
Last Updated: 03 Jan 2017 20:58 by ADMIN
ADMIN
Vladi
Created on: 26 May 2014 08:22
Category: TabControl
Type: Bug Report
1
TabControl: When the width of the hostpanel is less than the width of a TabItem, the TabItems start jumping
When a TabItem has a width (and the TabControl - don't) and if you try to resize the window so that the width of the window is less than the width of the TabItem - the TabItems start jumping
1 comment
ADMIN
Kiril Vandov
Posted on: 27 May 2014 13:31
As a work-around until this issue is resolved, we could use the loaded event of the RadTabControl and set width to the buttons in the ScrollViewer.

private void TabControlMain_Loaded(object sender, RoutedEventArgs e)
{
    var tabControl = sender as RadTabControl;
    var leftScrollButton = tabControl.ChildrenOfType<RepeatButton>().FirstOrDefault(x => x.Name == "LeftScrollButtonElement");
    var rightScrollButton = tabControl.ChildrenOfType<RepeatButton>().FirstOrDefault(x => x.Name == "RightScrollButtonElement");
    if (leftScrollButton != null && rightScrollButton != null)
    {
        leftScrollButton.Width = 17;
        rightScrollButton.Width = 17;
    }
}