There are certain circumstances where I would like some tools within a group to be enable and some to be disabled. In Office, you can sometimes have the cut and copy tools disabled, while the paste and format painter are enabled. This is exactly the kind of thing I am looking for.
How can this be achieved. So far all I can see is how to disable the entire group through the sharedprops.enabled property.
Try this:
((ButtonTool)toolbarManager.Ribbon.Tabs["theTab"].Groups["theGroup"].Tools["theButton"]).SharedProps.Enabled = false;
Thanks. That does work, but it doesn't make sense to me. Maybe I don't understand the concept of "sharedprops." To me that seems to indicate that it is the shared properties between all the tools in the group. What does "sharedprops" really mean? Where can I learn more about this?