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.
visibledataAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

visibledataAuthor Commented:
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.
}
0
Scott HelmersVisio Consultant, Trainer, Author, and DeveloperCommented:
This article is solving a different problem but perhaps the C# and C++ code it contains will be relevant:
http://unmanagedvisio.blogspot.com/2009/08/making-visio-ribbon-document-dependent.html

I found that link in this thread, which may also give you some ideas:
http://visguy.com/vgforum/index.php?topic=1168.0

Scott


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.