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

Autosized modal RadWindow doesn't center correctly

1 Answer 53 Views
Window
This is a migrated thread and some comments may be shown as answers.
Brad Divine
Top achievements
Rank 1
Brad Divine asked on 11 May 2010, 12:46 AM
Hi,

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" />
        </telerikNavigation:RadWindow>

This is with Silverlight 3 and version 2010.1.309.1030

Any thoughts?

Thanks,
Brad

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 11 May 2010, 11:23 AM
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.

Greetings,
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
Brad Divine
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or