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.IRi bbonContro l).
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.
The problem is when I export it to the XML file. I don't know how to get the Ribbon Controls (Microsoft.Office.Core.IRi
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.
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.Co re.IRibbon Control 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.
}
for xml, call back function is different.
xml:
private void button1_OnAction(Microsoft
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
(1) http://msdn.microsoft.com/en-us/magazine/cc163403.aspx
(2) http://blogs.msdn.com/visio/archive/2010/02/24/user-interface-extensibility-in-visio-2010.aspx
hope these could help you!