4 Answers, 1 is accepted
Currently, RadWindow is using a ScrollViewer. Hence, you are observing this strange behavior.
For our next release we will think of another way to resize the window. The only workaround you can use at the moment, is to size your panel or grid inside the window and then resize them whenever the SizeChanged event of the window is triggered.
Kind regards,
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
vvvvvvvvvvvv
Currently, RadWindow is using a ScrollViewer. Hence, you are observing this strange behavior.
^^^^^^^^^^^
I was about to make a note on this issue, but I wanted to make further test to see if it was my fault or not. I'm very happy that you acknowledge that you're still trying to refine this behavior. It looks strange! ;-)
This is going to be a killer product!
void window_SizeChanged(object sender, SizeChangedEventArgs e)
{
RadWindow window = sender as RadWindow;
(window.Content as BaseUserControl).Width = e.NewSize.Width - 55;
(window.Content as BaseUserControl).Height = e.NewSize.Height - 70;
}
It's not too elegant at the moment though. Is there a way to calculate the amount of available space inside the window?
I would also like to second Bens opinion about this being a killer product. I know I complain a lot here in the forum, but all in all I'm very impressed with the suite so far. Excellent stuff, guys!
Several weeks ago we had a similar issue with our media player control. It turned out that the developer was more interested in the size of the control content (in this case it was the media element which was played) than the whole media player. That is why, for our next release, we have decided to include two auxiliary properties that expose the content size of the RadWindow.
Thanks for your feedback, It is always the best way to ensure that our products keep getting better.
Hristo Borisov
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.