RadWindow Autosize on runtime

6 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. 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. 
  4. 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 >>

  5. Deepthi
    Deepthi avatar
    2 posts
    Member since:
    Apr 2017

    Posted 21 Apr Link to this post

    Mine is also a similar issue & have seen posts saying this issue is solved but unable to get a solution for the same.

    I have created a RadWindow and its content is set to a wpf view which has some controls & a RadExpander. I want this RadExpander to be shown when its expanded(my RadWindow Width should be resized accordingly).

    I have set ResizeMode="NoResize" and SizeToContent="True" for my RadWindow. But RadWindow doesn't seem to adjust according to its content, how can I achieve It?(I have not set any Height or Width to my RadWindow)

    Is SizeToContent changed to Enum to support WidthAndHeight or what is the fix for the problem given??

  6. Nasko
    Admin
    Nasko avatar
    679 posts

    Posted 26 Apr Link to this post

    Hi Deepthi,

    We are aware of the observed by you issue with RadExpander placed inside RadWindow. However, I am glad to inform you that the issue has been fixed with version R3 2015. If you are using a version that is lower than the mentioned one we suggest you to upgrade to our latest version. Attached you could find a video that demonstrates how the Window behaves with the latest official version (R1 2017) with RadExpander placed inside it.

    If after upgrading the issue is still observed, please provide a sample that demonstrates it - thus we could be able to investigate it further.

    We have also noticed that you have asked the exact same question in this forum thread. We will post the answer there as well in order to be available for the other members of the community. However, could we continue our discussion in this thread - thus we could be able to follow the communication more easily.

    Hope this helps.

    Regards,
    Nasko
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top