Click here to Skip to main content
15,868,101 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi everyone, I would like to dynamically enable/disable ribbon buttons in windows ribbon with the Windows Ribbon Framework in C#.

For example, when I open file explorer in Windows (8), the Copy, Paste, and other buttons are disabled but when one or more files are selected, the Copy button, for instance, is enabled.

I would like to know how I can accomplish this dynamically in a C# application.
Thanks in advance.


I'm using RibbonLib by Arik found here:
RibbonLib

I don't find Enabled property for the controls. I would like to know how I can do this.
Posted
Updated 12-May-15 20:02pm
v2
Comments
Sascha Lefèvre 12-May-15 18:58pm    
Which Ribbon Framework are you talking about?
Danzy83 13-May-15 2:08am    
Used in Ribbon. I don't find Enabled property for the buttons.
Sascha Lefèvre 13-May-15 2:13am    
Which one is it now? The one by arik or jribbon? :)
Danzy83 13-May-15 2:53am    
Sorry for late response. I use the one by Arik.
Sascha Lefèvre 13-May-15 2:57am    
Looking at the source there is an Enabled-Property:
http://windowsribbon.codeplex.com/SourceControl/latest#Ribbon/Controls/RibbonButton.cs

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900