Enable / Disable button in the group of a tab.

Ribbon for WPF Forum

Posted 10 years ago by bharath
Version: 4.5.0480
Avatar
Hello All,

I have a query i want to enable / disable few buttons within a group of a tab based on certain condition. I could find IsEnabled property only to the entire group but no to the individual items inside the group.

Is there any work around that has to be accomplished to get the job done.

Thanks and Regards
Bharath Ron

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Bharath,

The best way to do that sort of thing is make the buttons and controls command-based, meaning have them use WPF commands. Ribbon is designed to work very well with the WPF command model. If you have a CanExecute handler for the commands you use, you can test for the condition and those controls will auto-disable.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) 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.