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

8 posts, 0 answers
  1. Syed Danish
    Syed Danish avatar
    70 posts
    Member since:
    Dec 2009

    Posted 14 Dec 2009 Link to this post

    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
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 14 Dec 2009 Link to this post

    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.
  3. DevCraft banner
  4. Syed Danish
    Syed Danish avatar
    70 posts
    Member since:
    Dec 2009

    Posted 15 Dec 2009 Link to this post

    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 
  5. Syed Danish
    Syed Danish avatar
    70 posts
    Member since:
    Dec 2009

    Posted 15 Dec 2009 Link to this post

     

    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
  6. Syed Danish
    Syed Danish avatar
    70 posts
    Member since:
    Dec 2009

    Posted 15 Dec 2009 Link to this post

     

    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
  7. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 17 Dec 2009 Link to this post

    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.
  8. Syed Danish
    Syed Danish avatar
    70 posts
    Member since:
    Dec 2009

    Posted 19 Dec 2009 Link to this post

    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
  9. Syed Danish
    Syed Danish avatar
    70 posts
    Member since:
    Dec 2009

    Posted 01 Jan 2010 Link to this post

    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
Back to Top
DevCraft banner