This is a migrated thread and some comments may be shown as answers.

RadWindow Autosize on runtime

5 Answers 464 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dasaev
Top achievements
Rank 1
Dasaev asked on 30 Sep 2011, 06:32 PM
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?

5 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 03 Oct 2011, 12:10 PM
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 >>

0
Donald
Top achievements
Rank 1
answered on 17 Nov 2011, 08:51 PM
Has there been some kind of change in this issue? I believe I'm having the same problem in my application. 
0
Miroslav Nedyalkov
Telerik team
answered on 18 Nov 2011, 09:48 AM
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 >>

0
Deepthi
Top achievements
Rank 1
answered on 21 Apr 2017, 08:47 AM

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??

0
Nasko
Telerik team
answered on 26 Apr 2017, 07:27 AM
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.
Tags
Window
Asked by
Dasaev
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Donald
Top achievements
Rank 1
Deepthi
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or