将多个Outlook Addins合并到一个单一的Ribbon用户界面下。

huangapple go评论75阅读模式
英文:

Combine multiple Outlook Addins under a single Ribbon UI

问题

我正在使用Visual Studio 2022(C# .Net 4.7.2)开发两个独立的Outlook Addins,希望它们出现在相同的Ribbon UI下。

这是否可能?

从我所阅读的资料来看,我不确定是否可能。

英文:

I am developing 2 seperate Outlook Addins using the VSTO project type in Visual Studio 2022 (C# .Net 4.7.2) and wish them to appear under the same Ribbon UI.

Is this possible at all?

From the reading I've done I'm not sure it is.

答案1

得分: 3

你可能需要使用 qualified id 来识别 XML 中的共享项目(如选项卡),并在两个插件中使用相同的“qualified id”(使用idQ而不是id):

<tab idQ="mycompany:SharedTab" label="Shared Tab">

我认为 Visual Studio 的功能区设计器是否支持这个(?),因此您可能需要直接使用 XML(点击“提取功能区 XML”,然后按照说明切换到纯 XML 功能区定义)。

英文:

You may need to use qualified id to identify the shared items (such as tabs) in your XML (and use the same "qualified id" in both add-ins). Note idQ instead of id:

<tab idQ="mycompany:SharedTab" label="Shared Tab">

I don't think Visual Studio ribbon designer supports this (?), so you may need to go with XML directly (click the "Extract Ribbon XML" and then follow the instructions to switch to plain XML ribbon definition)

huangapple
  • 本文由 发表于 2023年2月6日 18:54:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/75360370.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定