Ribbon -> Group Property Question:
I am trying to add a single image (48x48 pixel) with a button to the Group of the Ribbon Tab, however, after the image is loaded and button is assigned, my roll over only highlights a button of 32 pixels wide, is there a way to highlight the entire Group? I was able to see this kind of behavior when adding an image to the background of the Group, however, that doesn't help because it is not a button, or is there a way to make this work?
Ribbon -> Group -> Tool -> Property Question:
Is there a way to make the Caption Text of the Group a popup menu?
Appreciate any assistance or tips!
Travis Ferreira
Hello Travis,
To the first question - If I understood you right you could go for this on the 'MouseEnterElement' event and check if the element is a 'ButtonToolUIElement' and run a code for highlighting the group(I guess it is going to be a few appearance properties set by you).
To the second question - this might be achieved with a 'CreationFilter'. The popup menu is nothing more than a 'ButtonToolUIElement' and a 'PopupToolDropDownButtonUIElement'(with an 'ArrowUIElement').
You could read about 'CreationFilter' at the following link: http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Win_Creation_Filter.html.
Here are some topics from our community which could also help you: http://community.infragistics.com/forums/t/34485.aspx, http://forums.infragistics.com/forums/t/47561.aspx http://community.infragistics.com/forums/t/58186.aspx and http://community.infragistics.com/forums/t/50234.aspx.
The above approach is not so recommended, because it features element's resizing, creating or removing and could lead to some unexpected behaviors.
Please do not hesitate to ask if something comes up.