Disabling a BackstageViewTab then re-enabling it causes issues

Posted by: agulik on 3 July 2023, 6:43 am EST

    • Post Options:
    • Link

    Posted 3 July 2023, 6:43 am EST - Updated 3 July 2023, 6:48 am EST

    Within our application, I would like to disable a BackstageViewTab (in my case called BViewTabUtil) from being accessible. I am able to do this with:

    BViewTabUtil.Enabled = False

    Later, I re-enable it with:

    BViewTabUtil.Enabled = True

    At this point, although the Tab appears enabled in the backstage view, it does not function correctly. Clicking on it does not load the Control into the right-hand panel, and the backstage view enters an odd state where multiple tabs are selected (see screenshot). Exiting the backstage view via the back button and then re-opening it results in the control being loaded/visible in the right-hand panel.

    Is there something needed beyond toggling the .Enabled parameter? I have tried detaching and reattaching the .Control to the BackstageViewTab with no success.

  • Posted 3 July 2023, 8:19 pm EST

    Hi,

    We are unable to replicate this issue at our end.

    Could you please provide some more information? When you are enabling and disabling the BackStageViewTab?

    We have created a sample in which we can disable and enable a BackStageView item and it’s working without any issue at our end.

    Please refer the attached sample: BackStageView.zip

    Could you please provide a sample or update the attached sample? So, that we can assist you accordingly.

    Best Regards,

    Nitin

  • Posted 5 July 2023, 7:42 am EST - Updated 5 July 2023, 8:17 am EST

    I was able to reproduce the issue in your code sample by doing the following.

    First, increase the delay time on re-enabling (I did 10 seconds):

    await Task.Delay(10000);

    Then:

    • Run application
    • Go to Utility tab
    • Click button to disable/enable Home Item

    Within the next 10 seconds:

    • Use back arrow to exit backstage view
    • Return to backstage view

    After the 10 seconds elapses, the Home tab becomes enabled again. But, clicking on it does not load the control into the right-hand panel and now both tabs are selected. Backstage view is now in a weird state and the only way to get to the Home tab is hiding/reopening backstage.

  • Posted 5 July 2023, 4:50 pm EST

    Hi,

    Thanks for the information.

    We have replicated this issue at our end. This seems like a bug. So, we have escalated this issue to the development team. Will get back to you once we have any update from them.[Internal Tracking Id - C1WIN-30676]

    Best Regards,

    Nitin

  • Posted 4 August 2023, 5:52 am EST

    Any update on this one?

  • Posted 6 August 2023, 5:34 pm EST

    Hi,

    As per the development team, this issue will be fixed in 2023v3 release. ETA for 2023v3 release is 1st/2nd week of December 2023.

    Best Regards,

    Nitin

  • Posted 26 December 2023, 6:02 pm EST

    Hi,

    This issue is fixed. Please test with the latest version: https://www.nuget.org/packages/C1.Win.Ribbon/8.0.20233.631

    Best regards,

    Nitin

  • Posted 10 January 2024, 4:51 am EST

    Thank you, I’ve confirmed this fix in our project using 2023v3.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels