Problem with auto sizing

2 posts, 0 answers
  1. Kate
    Kate avatar
    2 posts
    Member since:
    Apr 2010

    Posted 08 Apr 2010 Link to this post

    I had a problem with  Gauge  auto sizing.
    When I assign the RadGauge control of width and height in NaN (the minimal width and height equal 0, VerticalAlignment and HorizontalAlignment – Center), I receive a control of 100 x 100 no matter what container I have (Grid, StackPanel, Canvas), though I expected to see the control of 0x0 size.
    Can you tell me, why it happens? How can I avoid such situation and make auto sizing work correctly?
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 09 Apr 2010 Link to this post

    Hello Kate,

    This is actually the expected behavior. If you'd like to have gauge or scale object auto sized, then you must not to set Width and Height values at all. The containers which set size for the children (like Grid do) will set desired size automatically. If container does not set initial size for the children (like StackPanel or Canvas do) the default size for the gauge will be 100x100.

    Andrey Murzov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top