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

Modal Window not centered properly

3 Answers 88 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ralf Lenfers
Top achievements
Rank 1
Ralf Lenfers asked on 17 Mar 2011, 02:02 PM
Hello,
I have a problem with the placement of my modal window.
My app must support different orientations. Here is the XAML for my window:
<Grid x:Name="ContentPanel" Grid.Row="1">
    <telerikPrimitives:RadModalWindow x:Name="radWindow"
               Background="{StaticResource ModalWindowBackground}"
               Placement="CenterCenter">
       <!-- Controls follow here... -->
    </telerikPrimitives:RadModalWindow>
</Grid>
But if the modal window is already open and then the emulator is rotated to landscape the location of the window is not adjusted accordingly (see Screenshot1.png). If I open the window in landscape the initial position is OK. But when I rotate it back to portrait it becomes even worse (see Screenshot2.png).
Do you have a tip for me how to handle this?

Thank you.

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 18 Mar 2011, 01:40 PM
Hello Ralf Lenfers,

 Thank you for writing.
I have answered your question in the support thread you posted about the same issue.

Kind regards,
Victor
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Fredrick Bartlett
Top achievements
Rank 1
answered on 19 Mar 2011, 01:35 AM
So how do we all learn from this if you post in a private support list?
0
Victor
Telerik team
answered on 21 Mar 2011, 08:18 AM
Hi Fredrick Bartlett,

 Thank you for writing.

I replied to the private post in order avoid duplicating the same answer. If this answer contained useful information that other users can learn from (for example a workaround) I would have posted it here, and would have notified Ralf in the private post that I have answered his question in the forum thread.

In short there is an issue in RadModalWindow that has no workaround at the moment.

Thank you for understanding.

All the best,
Victor
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Window
Asked by
Ralf Lenfers
Top achievements
Rank 1
Answers by
Victor
Telerik team
Fredrick Bartlett
Top achievements
Rank 1
Share this question
or