Hi,
At this picture you see 2 ControlContainers that contains a CalendarCombo and the ControlContainer has a caption (Från: and Till:).
First time the ribbon tab i shown/selected the controlcontainers are not aligned correct. Why?
If I select another ribbon tab and go back to Statistik tab then the controlcontainers are lined up!
Second, I want theese controlcontainers to line up under each other, not side by side. How is this done by code?
Rgds Cynkan
Hello Cyril,
About your first question: Which version of Infragistics are you using? As far as I know a similar issue was fixed while ago.
About your second question: What you could do is set Preferred Size and Minimum Size of ControlContainerTool to Normal like:
Right click on ControlContainerTool in dropdown window Preferred Size -> Normal and Minimum Size -> Normal
Let me know if you have any further questions.
Thanks for your reply.
I use version 2009.2
Glad I was able to assist.
Ahh, perfect!
I tried this but used Vertcal on the Direction that was wrong of course ;)
Many thanks, now my customer is going to be pleased!
What you could do is set the LayoutAlignment of the group like:
group.LayoutAlignment = RibbonGroupLayoutAlignment.Far;
group.LayoutDirection = RibbonGroupToolLayoutDirection.Horizontal;
Hi Hristo,
First of all, big thanks for the sample. I did not realize that I had to use the properties after the controls where added to the group and tried to do that before they where added. My stupid misstake.
This case is soon completed, just one thing more. My captions has different lengths and the controls are left ugly aligned. I chat with Stephanie on Priority Dev Support and involved her to try to find a solution. The Sharedprops....TextHAlign property does not work on theese controlcontainers...
I applogize if I am stressing this case but my customer are waiting for a release today.
Rgds
Cyril
I have created a simple sample that illustrates “How to add ControlContainer in runtime” based on your requirements.