Autosized modal RadWindow doesn't center correctly

2 posts, 0 answers
  1. Brad Divine
    Brad Divine avatar
    7 posts
    Member since:
    Mar 2009

    Posted 10 May 2010 Link to this post


    I have RadWindow I'm opening via ShowDialog(). It's supposed to autosize and center, but that doesn't happen. Instead, it appears to center, then autosizes down. Closing and reopening the window correctly centers it.

    Here's the definition of the RadWindow: 

            <telerikNavigation:RadWindow x:Name="windowCreateNotification" ModalBackground="#0FFFFFFF" Header="Create Notification" RestoreMinimizedLocation="False" CanClose="False"  
      BorderThickness="0" CanMove="True" WindowStartupLocation="CenterScreen" Style="{StaticResource GERRadWindowStyle}" BorderBackground="{x:Null}" BorderBrush="{x:Null}" d:IsHidden="False" >
                <ws:ucNotificationWizard x:Name="ucNotificationWizard" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />

    This is with Silverlight 3 and version 2010.1.309.1030

    Any thoughts?

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 May 2010 Link to this post

    Hello Brad,

     You are right that the auto-size window centers before finding its actual size, but this is the way the layout in Silverlight works. What I could suggest you is to recenter the RadWindow once its content fire its loaded event. You can do this using the Left and Top properties of the RadWindow control.

    For these cases we will consider adding Center method to let you just call when your window is ready to be centered.

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