开发者

Fluent UI (Ribbon): Is it possible to target multiple tabs?

I have a custom "help" button which I would like to appear on several tabs: TabNewMailMessage, TabMail (a.k.a Home), TabReadMessage. I can accomplish this by creating several tab elementes in the ribbon XML开发者_StackOverflow中文版 file but this doesn't seem very DRY. Is it possible to define the button once and have it target several tabs?

<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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜