Guage in a DockPanel

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
    Admin
    Victor avatar
    1351 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.

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