• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1153
  • Last Modified:

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.
0
visibledata
Asked:
visibledata
  • 2
1 Solution
 
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now