Is it possible to create a split button using Infragistics (outside of the Ribbon) that looks like the "Change your view" button in Windows File Explorer for Windows 7? Below is an image on the internet that show the button I am describing.
The left side of the button behaves like a normal button with a click action and the right side is a drop down menu that which contains menu items with their own click actions.
Thanks,
-eric
Hello Eric,
Thank you for your post. I have been looking into it and I can say that you are able to use the MenuTool outside of the XamRibbon. I have created a sample project for you showing how to do so. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thanks for the reply. I was able to reproduce your example but I have a few questions/issues. First, it says in the help documentation "A tool that can be placed inside a RibbonGroup, ApplicationMenu, ApplicationMenuFooterToolbar or another MenuTool." Its minor but maybe this needs to be updated to say that it does not have to be inside any Infragistics control? Second, when the mouse is not over the MenuTool its almost invisible. All I can see is the Icon, Caption, and a little tiny down arrow. I believe this is because its really meant to be placed in the Ribbon. This style makes sense on the ribbon but not when its just sitting on a form. Is there anyway to get the style to look more like the picture above or am I on my own to create my own style?
You are right that the Tools are meant to be used inside the XamRibbon, but they can also be used outside it. The documentation states that the tool can be placed in Ribbon, not that it should be placed inside it. Also I modified the sample I sent you before, so now the MenuTool has a background. Basically I handled the Loaded event and get the element that is responsible for the background and set its background to a color different from transparent.
Hope this helps you.
Thanks for the reply. I would like to alter the style of the MenuButton so that it looks more like a traditional button when IsMouseOver is false. I was trying to see if I could get the Style or Template of the MenuButton using Expression Blend 2012 but I am still reading about this topic. I was also looking at the RibbonGenerics.xaml file to see if I could find the XAML that controls the style/template of the MenuButton.
The MenuTool element has only a ContentPresenter in its template and the content is added internally via code. The element you can retemplate is MenuToolPresenter. You can find its default Style in the RibbonGeneric.xaml file.
I just want the Office2013 theme applied to a MenuTool outside of the Ribbon. Can you give me some direction on getting this to work?
Hi, I'm experiencing the same issue, did you get this theme working with the split button?