Modal Window not centered properly

4 posts, 0 answers
  1. Ralf Lenfers
    Ralf Lenfers avatar
    1 posts
    Member since:
    Sep 2009

    Posted 17 Mar 2011 Link to this post

    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.
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 18 Mar 2011 Link to this post

    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>>
  3. DevCraft banner
  4. Fredrick Bartlett
    Fredrick Bartlett avatar
    5 posts
    Member since:
    May 2006

    Posted 18 Mar 2011 Link to this post

    So how do we all learn from this if you post in a private support list?
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 21 Mar 2011 Link to this post

    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>>
Back to Top