问题
I have a custom Ribbon Split button in outlook. I ideally want to invoke the top button of the split button(not the drop down) from my outlook Add-in. To do that I got the control of split button using Redemption and when i try to execute it I am getting IAccessible Error.I am able to invoke any other normal button with this approach. I googled around all things but not able to find the solution. Any help or suggestion will be of great help. below code shows how I got the control of button
Redemption.SafeRibbonControl newControl = cRibbon.Controls.Item("Add With Template");
newControl.Execute();
来源:https://stackoverflow.com/questions/35866487/invoke-the-ribbon-split-button-of-outlook-from-outlook-add-in