Hi everybody, i have a ribbon control on a form... I create a ribbon group that contain two PopupMenuTools, three ButtonTools and one LabelTool. Those controls are grouped in three diferents buttonGroups (using InstanceProps.ButtonGroup) in the way PopupMenuTools-ButtonTool (for the first and second line) and LabelTool-ButtonTool for the third one. As you can see in the image the two first lines doesn't match the size of the third. I'd like to make all the lines the same size, is there anyway to do that ?? I've heard about creation filters but i don't know how to do that?
Any help ?
PD: Sorry for my english.
Hi, and thanks for reply
I have tested this and yes, it does work. But personally I think this is awfull lot of work to just resize a simple toolbar button...
One another thing I have noticed is that the custom tool that has modifyed width, underlaps the control next to it, in this case the label control.
Hello,
I am just checking about the progress of this issue. Did you solve your issue accordingly to the information that I provided you did you test the sample?
Let me know if you need any further assistance.
Hello ,
I am sorry for misunderstanding. The Ribbon is designed to mimic the Office and VS style toolbars, so the Default tool size is based on its content. In this case you are using a ribbon so you are not able to change the widths of the tool via the designer or programmatically. Here are two links where this issue was discussed:
http://community.infragistics.com/forums/p/1239/11779.aspx#
http://community.infragistics.com/forums/p/24923/91371.aspx#91371
In the first link Mike Dour explain how could you be able to achieve resizing by inheriting classes.
There is another way that you could use to achieve what you are looking for – using Creation Filter.
For more information about creation filter please look at the following link from our online documentation:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2009.2/CLR2.0/html/Win_Creation_Filter.html
I have created small sample where I change the width of PopUpMenuTool and ButtonTool using a CreationFilter just to show you how you could modify the tools width in the RibbonGroup.
Hope this helps.
I also need to change the width of a PopupMenuTool, but I get the same error. Is there any way of chaging the width of a tool?
Hello again,
When i try to do this i get an InvalidOperationException: "The Width property cannot be set for a Infragistics.Win.UltraWinToolbars.PopupMenuTool tool."
I tried to do using SharedProps and even InstanceProps, but i get the same error in both cases.
I'd already tried this and didn't work, so I was exploring ways to make it through the creation filters.
Other solution ??