Enable/Disable Tab

Ribbon for WPF Forum

Posted 17 years ago by MichaelEhlert - Boll und Partner Software GmbH
Version: 1.0.0342
Avatar
Hi everybody,
is there a method to disable an entire tab of the ribbon? Documentation desclaims IsEnabled as Getter/Setter, but there is only a getter available.
Any hint is apreciated!

Michael

Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Michael,

Good timing. :) We just updated some code to better support the disabling of tabs a few minutes ago, which will appear in the next maintenance release.

Right now you can disable a Tab by setting its IsEnabled property to false. You may have to cast the reference to Tab to since IRibbonControl only currently defines a getter (via IInputElement) but Tab defines a getter and setter. Once IsEnabled is false, the Tab can no longer be clicked on to select it.

The problems in the current build are that the Tab text doesn't render in the disabled color in this state. Also mouse wheel tab selection will still select the tab. Both of these items have been updated for the next maintenance release.

Additionally we will add an IsEnabled setter to IRibbonControl so that the casting is no longer needed.

[Modified at 06/13/2007 08:09 AM]


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.