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

RadWindow is not centered when browser is reduced

1 Answer 23 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jens Hobbie
Top achievements
Rank 1
Jens Hobbie asked on 09 Nov 2011, 03:48 PM
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.

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 14 Nov 2011, 05:54 PM
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 >>

Tags
Window
Asked by
Jens Hobbie
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or