RadWindow Autosize on runtime

4 posts, 0 answers
  1. Dasaev
    Dasaev avatar
    3 posts
    Member since:
    Dec 2010

    Posted 30 Sep 2011 Link to this post

    Hello guys,

    I have created a RadWindow as a User Control and It has ResizeMode="NoResize" and SizeToContent="True". Inside the content I have an Stackpanel that is collapsed and when I turn It visible on runtime, the content below is hidden because the RadWindow doesn't resize, how can I achieve It?
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 03 Oct 2011 Link to this post

    Hi Dasaev,

    I tried your scenario and I was able to reproduce the problem. The issue is that the SizeToContent feature of the RadWindow control for WPF works only for the first time the RadWindow control renders. This is because it sets its Width and Height properties as a work-around for a bug in the WPF Window control (which we use as a host). We will try to find a better way to work around the other problem. Here is a PITS item which you can use to vote for the issue.

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Donald
    Donald avatar
    4 posts
    Member since:
    Oct 2011

    Posted 17 Nov 2011 Link to this post

    Has there been some kind of change in this issue? I believe I'm having the same problem in my application. 
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 18 Nov 2011 Link to this post

    Hello Donald,

    This issue is not fixed. The PITS item was also updated to resolved state. You can find the fix in the 2011 Q3 release.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top