流畅的UI(功能区):是否可以定位多个标签?

时间:2011-08-15 14:29:06

标签: vsto ribbon office-2007

我有一个自定义的“帮助”按钮,我想在几个标签上显示:TabNewMailMessage,TabMail(a.k.a Home),TabReadMessage。我可以通过在功能区XML文件中创建几个选项卡元素来实现此目的,但这似乎不是很干。是否可以定义按钮一次并将其定位到多个选项卡?

<tab idMso="TabMail">
    <group id="g_Home" label="Support">
      <button id="btCreateHelpEmail_Home" label="Help" size="large" imageMso="QuickSearchOrganizer" onAction="CreateHelpEmail"  />
    </group>
</tab>
<tab idMso="TabReadMessage">
    <group id="g_ReadMessage" label="Support">
      <button id="btCreateHelpEmail_ReadMessage" label="Help" size="large" imageMso="QuickSearchOrganizer" onAction="CreateHelpEmail"  />
    </group>
</tab>
<tab idMso="TabNewMailMessage">
    <group id="g_NewMail" label="Support">
      <button id="btCreateHelpEmail_NewMail" label="Help" size="large" imageMso="QuickSearchOrganizer" onAction="CreateHelpEmail"  />
    </group>
</tab>

0 个答案:

没有答案