Link to home
Start Free TrialLog in
Avatar of visibledata
visibledata

asked on

How to get the ribbon control?

I created an addin project for the Visio. I used visual designer at first, there is no any problem with it.
The problem is when I export it to the XML file. I don't know how to get the Ribbon Controls (Microsoft.Office.Core.IRibbonControl).
For example: In the initial loading stage, I want to fill the combo box. Also, when one combo box index changed, in the call back function I want get another control such as textbox and do some changes.
The reason I export it to the XML file is the visual designer doesn't support the backstage view so I have manually create it in the XML.
Avatar of dandraka
dandraka
Flag of Greece image

Avatar of visibledata
visibledata

ASKER

Sorry, I through all the links you posted. There are nothing related to my problem.
for xml, call back function is different.

xml:
private void button1_OnAction(Microsoft.Office.Core.IRibbonControl sender)

visual designer:
private void button1_OnAction(object sender, ControlEventArgs e)

My problem is how can get other controls when I am using xml
For example: (In visual designer)
private void button1_OnAction(object sender, ControlEventArgs e)
{
      button2.visible=false;
      // I changed the button2 control property when button one is fired. Just don't know how to do this when I am using xml not the visual designer.
}
ASKER CERTIFIED SOLUTION
Avatar of Scott Helmers
Scott Helmers
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial