Search code examples
infragisticsribbon-control

Vertically align Infragistics TextBoxControl edit areas on Ribbon?


I have a Ribbon (UltraWinToolbar) with 3 TextBoxTools on it in a Group arranged vertically a bit like:

| Short Caption: [xxxxxxxxxxxxxxxxxxxxxx] |
| Very Long Caption Indeed: [xxxxxxxxxxx] |
| Tiny: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] |

But I want it to look like this:

| Short Caption:            [xxxxxxxxxxx] |
| Very Long Caption Indeed: [xxxxxxxxxxx] |
| Tiny:                     [xxxxxxxxxxx] |

How can I control the width of the edit area? Using 2010.3

Update This seems to be a result of setting the SharedProps.Width to be a defined value, in my case 100. Setting it to -1 makes the controls line-up, but the edit areas are now a bit small.


Solution

  • This can be accomplished using a Creation Filter. Please see the following thread on the Infragistics website for more details and a sample application that demonstrates how you can implement it:

    http://forums.infragistics.com/forums/p/68686/347701.aspx