How do I prevent RadWindow from scrolling?

5 posts, 0 answers
  1. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 25 Jul 2008 Link to this post

    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


  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 25 Jul 2008 Link to this post

    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.
  3. DevCraft banner
  4. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 25 Jul 2008 Link to this post

    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!
  5. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 28 Jul 2008 Link to this post

    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!
  6. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 29 Jul 2008 Link to this post

    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.
Back to Top
DevCraft banner