RadWindow is not centered when browser is reduced

2 posts, 0 answers
  1. Jens Hobbie
    Jens Hobbie avatar
    15 posts
    Member since:
    Mar 2010

    Posted 09 Nov 2011 Link to this post

    Hello,

    I have problem in behavior of RadWindow. Here are steps to reproduce it:
     - Open RadWindow when browser is maximized (or have a large size).
     - Reduce size of browser. RadWindow is not in the center of the browser.
    I want to RadWindow always stays in the center of the browser.
    Do you have any idea how to do that?

    Thank in advance on any help.
  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 14 Nov 2011 Link to this post

    Hi Jens Hobbie,

    This is the expected behavior of RadWindow. The property WindowStartUpLocation affects its position only when it is showed and not afterwards. In order to achieve the desired behavior you have to attach to this event: App.Current.Host.Content.Resized   and then handle the Top and Left properties of the RadWindow in order for the RadWindow to be always centered.

    Greetings,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top