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

Setting WindowStartupLocation to CenterScreen may not always show the window centered unless a width and height are specified

1 Answer 109 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 18 Aug 2010, 03:22 AM
Hi.

Using RadControls_for_Silverlight_4_2010_2_0812 and an out-of-browser silverlight application, setting WindowStartupLocation to CenterScreen may not always show the RadWindow centered unless a width and height are specified on the RadWindow.

I tried setting WindowStartupLocation in xaml, code-behind, and both without specifying a width and height on the RadWindow and the RadWindow would show up in the bottom right-hand corner of the silverlight application at random times, but most of the time it would be centered as expected.

After specifying width and height values in the RadWindow's xaml, the RadWindow would always appear centered as expected.

This seems to be a bug, but the work-around seems viable.

I have not tried setting the width and height value in the RadWindow's code-behind or using a WindowStartupLocation of CenterOwner for example to test for different behaviors.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 20 Aug 2010, 08:47 AM
Hello Mike,

 Could you please open a support ticket provide us a sample project that reproduces the issue and some instructions when this happens and how often if it happens randomly? This would help us investigate what the problem is and fix it.

Sincerely yours,
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
Mike
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or