Accessing buttons added to a UIExtensionSite

Topics: CAB & Smart Client Software Factory
Sep 14, 2006 at 11:33 PM
originally posted by: MichaelDaniel

Hi. I'm using the SCSF but thought this might be a relevant question to ask here as well:

I have added several buttons dynamically to a shell ToolStrip from my ModuleController.
I can access the button's Status (eg Disabled/Enabled) through the CommandStatus. For example:

WorkItem.Commands"MyButton".Status = CommandStatus.Disabled;

However, I have not been able to work out how I can access other attributes on the buttons. For example: how can I determine the CheckState of the button if I have CheckOnClick enabled?

Thanks for any help.