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

RadWindow Position

1 Answer 70 Views
Window
This is a migrated thread and some comments may be shown as answers.
Naseem
Top achievements
Rank 1
Naseem asked on 11 May 2011, 06:37 AM
Hi,

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
http://www.telerik.com/community/forums/silverlight/window/position-of-radwindow-browser-resize.aspx
http://www.telerik.com/community/forums/silverlight/window/rad-window-position.aspx

Thank you,

Kind Regards,
Naseem


1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 16 May 2011, 07:41 AM
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.

Regards,
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
Tags
Window
Asked by
Naseem
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or