开发者

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

开发者 https://www.devze.com 2023-03-28 09:10 出处:网络
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 ribb

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

精彩评论

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