Guage in a DockPanel

Thread is closed for posting
2 posts, 0 answers
  1. Fredrick Bartlett
    Fredrick Bartlett avatar
    5 posts
    Member since:
    May 2006

    Posted 20 Mar 2011 Link to this post

    How can I use a Guage in a DockPanel? I added a guage to a DockPanel and the alignment does not work.
  2. Victor
    Victor avatar
    1358 posts

    Posted 21 Mar 2011 Link to this post

    Hello Fredrick Bartlett,

    Thank you for writing.

    I have an idea why it might not work and it is probably because the dock panel measures its children with infinity for width or height. If the gauge gets a size that contains infinity during the measure pass, it will return 0 as its desired size. In essence it behaves like a Rectangle object or another UI element that does not have an implicit desired size.

    Please try setting the size of the gauge (or its parent element) to some fixed size.
    If this is not the case, please describe your issue in detail so that I may provide a solution.

    I am looking for your reply.

    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top