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

Auto resizing of the RadWindow on runtime

2 Answers 171 Views
Window
This is a migrated thread and some comments may be shown as answers.
Lukas
Top achievements
Rank 1
Lukas asked on 21 Feb 2013, 11:48 AM
Hello Telerik,

regarding this thread, I'd like to know if this issue still is not fixed? We really try to make it work, but the RadWindow doesn't resize, when its content size is changed.

Is there something required like setting the MinHeight?

If it works properly, I'd really like to know which properties need to be set to certain values, because I can't figure it out from the documentation.

EDIT: currently we achieve the behaviour we'd like to have through hacking the contents ActualHeight into the RadWindows Height property (content's OnSizeChanged event). We prevent layout cycles through a couple of if-statements, but we'd really like to get rid of this.

2 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 26 Feb 2013, 09:50 AM
Hello Lukas,

This issue was resolved and the Public Issue Tracker System item was updated.

Could you try to reproduce the issue with our latest released version of RadWindow and let is know if you are experiencing any issues? Note that if you first set the SizeToContent of the control to True and then you resize it the SizeToContent property is set to False and its functionality is stopped.

Greetings,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
tung ngie
Top achievements
Rank 1
answered on 20 Dec 2013, 11:31 AM
Hi Vladi

My project faces the same issue on Japanese OS.
We created a customised message box view (user control) and put it into a dialog view (made of RadWindow).
The message box view has a grid which contains a text block (with TextWrapping=Wrap), a content control and a scroll viewer, each in a row. (Content Control and ScrollViewer content are TextBlock with TextWrapping=Wrap, created by ViewModel.)
The scroll viewer will appear only when a toggle button (labeled 'More details) is checked. By default, it is unchecked. so the scroll viewer is not shown.

On Japenese OS, and our message box view is set with MaxWidth of 600, the dialog view (RadWindow) does not grow when the toggle button is checked.
On English OS, it is working fine, though at times it doesn't grow when the content control's content is null.
Any help will be great.

WPF RadControl 2013 Q3 (as i understand from the Property of the reference the project is using.)

Thanks
tungngie
Tags
Window
Asked by
Lukas
Top achievements
Rank 1
Answers by
Vladi
Telerik team
tung ngie
Top achievements
Rank 1
Share this question
or