Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Control Container Tool Resize on Font Changes
posted

Hi,

 I have a usercontrol that is embedded in a Control Container tool. The ribbon looks fine (control container and its user controls) for the default font size(8.25) but when i increased the fontsize to 19 or someother size the control container doesnt resize and user control is trimmed.

I tried hosting the user control on a form and changed the font size, it properly resized to accomodate all its child control with updated font size.

So just to make a try in Design Mode, i removed the control container, changed the font size of the user control, added a control container and linked the user control, surprisinly the ribbon resized to accomodate the full size of the user control.  But when i tried during runtime, ribbon didnt resize and the user control was trimmed.

How can i display the full size of the user control in the control container tool within the ribbon in runtime.

 I need to do this, based on the user selection i need to change the font size of the whole applicaiton

Regards,

Anand

  • 44743
    posted

    Which dimension of the size is not increasing correctly, the height or the width? The Ribbon's height is only based on the font size of the UltraToolbarsManager. Changing the font size of a UserControl should not change the height of the Ribbon. If you are using the ControlContainerTool in an UltraToolbar, its height should increase. However, the width should always increase to show the full width of the contained control, in either the Ribbon or an UltraToolbar. If things are not resizing correctly based on this information, I would recommend submitting the issue to the support group: http://es.infragistics.com/gethelp.