RadWindow Position

2 posts, 0 answers
  1. Naseem
    Naseem avatar
    70 posts
    Member since:
    Nov 2010

    Posted 11 May 2011 Link to this post


    I'm using RadWindow which it's content is generating dynamically at run time. It means event though I have set WindowsStartupLocation=CenterOwner, it's position doesn't set properly. Since the page shows and then the content is loading.

    I'm not sure how I can force it to reset its position again after the content loaded.

    I have seen two links bellow but unfortunately they didn't help me

    Thank you,

    Kind Regards,

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 16 May 2011 Link to this post

    Hello Naseem,

     The RadWindow doesn't support to be forced to center again, but you could center it with two lines of code:

    window.Left = (Application.Current.Host.Content.ActualWidth - window.ActualWidth) / 2;
    window.Top = (Application.Current.Host.Content.ActualHeight - window.ActualHeight) / 2;

    Hope this helps.

    Miroslav Nedyalkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top