Unplanned
Last Updated: 30 May 2019 08:27 by ADMIN
ADMIN
Vicky
Created on: 31 Oct 2018 11:39
Category: TabControl
Type: Bug Report
3
TabControl: Incorrect TabStrip measure on window resize when ScrollButtons are visible and TabStripPlacement is Left/Right

When the window of an application that has a TabControl with Left/Right TabStripPlacement is resized, the measure of the TabStrip is incorrect and the ScrollButtons are in Disabled state. All Tabs should be visible when the window is in its normal state and should be scrollable.
 
========================
Possible workaround:
Inherit RadTabControl and override

  protected override void OnScrollButtonsVisibilityChanged()
        {
            if (this.ScrollViewer != null)
            {
                RadDockPanel parentDock = this.ScrollViewer.Parent as RadDockPanel;
                if (parentDock != null)
                {
                    // Dispatcher is because Measure should be called outside other Measure phase.
                    this.Dispatcher.BeginInvoke(new Action(() =>
                    {
                        parentDock.InvalidateMeasure();
                    }));
                }
            }
        }
 
 
0 comments