none
Cannot add split button context menu to ContextMenuContactCardOverflowDropdown in Outlook RRS feed

  • Question

  • I have the following Ribbon Xml getting loaded with no issue.  When I look at the menu on the contact card I can see the button and the arrow, but the arrow is disabled. Is there something wrong with my Xml or is it not possible to add this in this context menu.  There is another built in menu option that appears to be a splitbutton.  I am loading the xml in the GetCustomUI method call when the RibbonID is "Microsoft.Mso.IMLayerUI".

     

     

    <contextMenu idMso="ContextMenuContactCardOverflowDropdown">

            <splitButton id="MyContextMenuContactCardOverflowDropdown" enabled="true">

              <button id="MySplitButton" label="MySplitButton" enabled="true"/>

              <menu id="MySplitButtonMenu" label="MySplitButtonMenu" enabled="true">

                <button id="MyButton1" label="MyButton1" enabled="true" />

                <button id="MyButton2" label="MyButton2" enabled="true"/>

                <button id="MyButton3" label="MyButton3" enabled="true"/>

              </menu>

            </splitButton>

          </contextMenu>

     


    Craig Dahlinger - Senior Software Developer
    Thursday, May 12, 2011 2:11 PM

Answers

  • Hi Craig Dahlinger,

    Thank you for posting.

    After reading your post, I tested on my side and fixed the xml likes the follows:

          <splitButton id="MyContextMenuContactCardOverflowDropdown">
     
            <button id="MySplitButton" label="MySplitButton" />
     
            <menu id="MySplitButtonMenu" label="MySplitButtonMenu">
     
              <button id="MyButton1" label="MyButton1" />
     
              <button id="MyButton2" label="MyButton2" />
     
              <button id="MyButton3" label="MyButton3" />
     
            </menu>
     
          </splitButton>

     I found the enabled = "true" should be removed. If so, we can see the arrow is enabled.

    Hope this can help you.

    Best Regards,

     


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Bruce Song Tuesday, May 17, 2011 7:57 AM
    • Marked as answer by Bruce Song Monday, May 23, 2011 9:43 AM
    Monday, May 16, 2011 5:12 AM

All replies

  • Hi Craig Dahlinger,

    Thank you for posting.

    After reading your post, I tested on my side and fixed the xml likes the follows:

          <splitButton id="MyContextMenuContactCardOverflowDropdown">
     
            <button id="MySplitButton" label="MySplitButton" />
     
            <menu id="MySplitButtonMenu" label="MySplitButtonMenu">
     
              <button id="MyButton1" label="MyButton1" />
     
              <button id="MyButton2" label="MyButton2" />
     
              <button id="MyButton3" label="MyButton3" />
     
            </menu>
     
          </splitButton>

     I found the enabled = "true" should be removed. If so, we can see the arrow is enabled.

    Hope this can help you.

    Best Regards,

     


    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Bruce Song Tuesday, May 17, 2011 7:57 AM
    • Marked as answer by Bruce Song Monday, May 23, 2011 9:43 AM
    Monday, May 16, 2011 5:12 AM
  • thank you, that did it.
    Craig Dahlinger - Senior Software Developer
    Monday, May 16, 2011 1:55 PM