This is a migrated thread and some comments may be shown as answers.

Fix the height of the control depending on the height of the Container

7 Answers 141 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
Syed Danish
Top achievements
Rank 1
Syed Danish asked on 14 Dec 2009, 12:15 PM
Hi,

Can anybody help me out of the typical fix. I am working on the Composite Application Guidance with silverlight. I am facing the problem managing the height of the Outlook Bar according to the resolution of the Client screen. As I am also using CAG of silverlight, so the outlook bar control should appropriately be fixed into the height of that region where it is placed. Can anybody help me out of this typical fix......

Please help me, it is urgent. Thanks in advance.

Regards,
Danish

7 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 14 Dec 2009, 02:05 PM
Hello Syed,

As far as I know a region can be either ContentControl or ItemsControl. If your region is ContentControl, then try setting the HorizontalContentAlignment and VerticalContentAlignment to Stretch. If your region is ItemsControl, then use ItemContainerStyle to set HorizontalAlignment and VerticalAlignment to Stretch. Give it a try and let me know how this works for you. If you still experience the same issue, could you please share more details about your application. It would be best if you could send us a sample project.


Best wishes,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Syed Danish
Top achievements
Rank 1
answered on 15 Dec 2009, 07:21 AM
Hi Kiril Stanoev,

Thanks for the quick reply. I tried the solution given by you but is dosent satisfy my requirement. We are using the Composite application guidance and need to fix the outlook bar in the whole region(i.e the ItemsControl). The OutLook Bar should fully occupy the space of the Region. It is comming out of the Region. The Image can clearly explain my problem.

Thanks Again.....

Regards
Danish 
0
Syed Danish
Top achievements
Rank 1
answered on 15 Dec 2009, 07:27 AM

 

Hi Kiril Stanoev,

Thanks for the quick reply. I tried the solution given by you but is dosent satisfy my requirement. We are using the Composite application guidance and need to fix the outlook bar in the whole region(i.e the ItemsControl). The OutLook Bar should fully occupy the space of the Region.

Thanks Again.....

Regards
Danish
0
Syed Danish
Top achievements
Rank 1
answered on 15 Dec 2009, 08:28 AM

 

Hi Kiril Stanoev,

Thanks for the quick reply. I tried the solution given by you but is dosent satisfy my requirement. We are using the Composite application guidance and need to fix the outlook bar in the whole region(i.e the ItemsControl). The OutLook Bar should fully occupy the space of the Region. The image attached will clearly give a picture of my problem. The Outlook bar her comes out of the window where it is defined.

Please help me out of this problem. Thanks again..

Regards
Danish
0
Kiril Stanoev
Telerik team
answered on 17 Dec 2009, 03:03 PM
Hi Syed,

I am attaching a sample Prism project that in one of its regions contains an OutlookBar. Have a look at it and you will see that the OutlookBar stretches properly. Give it a try and if you still experience the same issue, could you please send me your project or the part where you use the OutlookBar, so I can see what is causing the issue.


Regards,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Syed Danish
Top achievements
Rank 1
answered on 19 Dec 2009, 01:15 PM
Hi Kiril Stanoev,
 
Thanks for the help Kiril Stanoev. The Solution you gave helped me solve my problem.

Thanks Again for the help provided.

Regards
Syed Danish
0
Syed Danish
Top achievements
Rank 1
answered on 01 Jan 2010, 09:29 AM
Thanks for the help provided. I was using the Region as Items Control and when I changed the Region definitions with the Content Control, I was able to control the height of the Outlook bar according to the Container height (i.e a Region with Composite Application Guidance). I once again Thank Telerik for their Support.

Regards
Danish
Tags
OutlookBar
Asked by
Syed Danish
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Syed Danish
Top achievements
Rank 1
Share this question
or