Changing visibility of tab within ContextualTabGroup while backstage is open

Ribbon for WPF Forum

Posted 9 years ago by Stefan Link
Version: 13.1.0583
Platform: .NET 4.5
Environment: Windows 8 (64-bit)

When changing the visibility of a tab within a ContextualTabGroup to Collapsed while application is in backstage and then manually closing the backstage causes a rendering problem of the tab-group.
When changing the visibility within a command that automatically closes the backstage, the problem doesn’t occur.

Used the following code (Within a new project):


protected override void OnStartup(StartupEventArgs e)
    ThemeManager.CurrentTheme = ThemeName.MetroWhite.ToString();


<ribbon:RibbonWindow x:Class="WpfApplication1.MainWindow"
    <ribbon:Ribbon Name="Ribbon">
                <ribbon:BackstageTab Header="Test">
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        <ribbon:Button Grid.Row="0" Label="Hide second tab and close backstage manually"
                                       StaysOpenOnClick="True" Click="CollapseSecondTab" />
                        <ribbon:Button Grid.Row="1" Label="Hide second tab and close backstage automatically"
                                       StaysOpenOnClick="False" Click="CollapseSecondTab" />
            <ribbon:ContextualTabGroup Label="Group" IsActive="True">
                <ribbon:Tab Label="Tab1"></ribbon:Tab>
                <ribbon:Tab Label="Tab2" Name="Tab2"></ribbon:Tab>
            <ribbon:Button Label="Show second tab" Click="ShowSecondTab"></ribbon:Button>


private void ShowSecondTab(object sender, ExecuteRoutedEventArgs e)
    Tab2.Visibility = Visibility.Visible;
private void CollapseSecondTab(object sender, ExecuteRoutedEventArgs e)
    Tab2.Visibility = Visibility.Collapsed;


To reproduce the problem make sure both tabs within the tab group are shown. -> Open the backstage -> Click "Hide second tab and close backstage manually"-button. -> Close the backstage.

Any suggestions, why this is happening and how to avoid/solve this problem?

Comments (1)

Answer - Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Stefan,

Thanks for reporting this.  We've fixed the bug for the upcoming 2013.2 version.

Actipro Software Support

The latest build of this product (v22.1.3) was released 21 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.