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

How do I prevent RadWindow from scrolling?

4 Answers 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 25 Jul 2008, 09:41 AM
I'm having some problems getting RadWindow behave the way I want it to. Take a look at the screen shots in the link below (zipped .docx). They illustrate the behaviour of my application when it is run inside RadWindow. Is there a way to "force" RadWindow to always respect the boundaries set by the content?

http://cid-cc43a90a79374ebd.skydrive.live.com/self.aspx/Public/RadWindow%20Problem%20-%20Screenshots.zip


4 Answers, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 25 Jul 2008, 12:51 PM
Hello Henrik,

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,

Hristo Borisov
the Telerik team


Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ben Hayat
Top achievements
Rank 2
answered on 25 Jul 2008, 01:22 PM
Hristo;

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!
0
hwsoderlund
Top achievements
Rank 1
answered on 28 Jul 2008, 04:10 PM
Got it working now, thanks. This is how I handled the SizeChanged event:

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!
0
Hristo Borisov
Telerik team
answered on 29 Jul 2008, 08:47 AM
Hi Henrik and Ben,

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.

Sincerely yours,
Hristo Borisov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Ben Hayat
Top achievements
Rank 2
hwsoderlund
Top achievements
Rank 1
Share this question
or