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.