I'm crating a tab for an outlook add-in, and I need to implement build-in group element of outlook's ribbon.
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabMail">
<button id ="myButtonId" screentip="myTab"/>
</tab>
<tab id="myTabId" insertAfterMso="TabMail">
<group idMso="GroupMailNew"/>
<!-- some addional elements -->
</tab>
</tabs>
</ribbon>
</customUI>
As you may see I'm trying to call the Outlook's group for new Emails/Items with the GroupMailNew
id, but it returns:
It suppose to be like:
(Without the small horizontal New Email
button)
As I see there is probably two option to solve it:
idMso
.New Email
element edit and set its visible attribute to false.Any help?
You need to include built-in controls into your custom group, not to add a built-in group with all controls:
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabMail">
<button id ="myButtonId" screentip="myTab"/>
</tab>
<tab id="myTabId" insertAfterMso="TabMail">
<group id="your_id_here">
<!-- built-in controls with idMso specified go there -->
</group/>
</tab>
</tabs>
</ribbon>
</customUI>
Read more about the Fluent UI in the following series of articles: