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

WindowStartupLocation and MaxWidth/MaxHeight

1 Answer 37 Views
Window
This is a migrated thread and some comments may be shown as answers.
Yaroslav
Top achievements
Rank 1
Yaroslav asked on 17 Oct 2011, 06:03 PM
Hello. When I setting up Width and Height and WindowStartupLocation.CenterOwner - everything is OK - window is starting in the center.
But if I setting up MaxWidth/MaxHeight
private void SetSizes()
        {
            MinWidth = 600;
            MinHeight = 400;
            MaxHeight = 9 * Application.Current.Host.Content.ActualHeight / 10;
            MaxWidth = 6 * Application.Current.Host.Content.ActualWidth / 7;
        }
and load data and window becoms at Max Sizes it is sliding to the right bottom corner of the screen. Is it possible to relocate window after data loaded?

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 18 Oct 2011, 10:09 AM
Hello Yaroslav,

 
Yes, it is possible to change the window size and position after the window is loaded. You could use the (Max)Width, (Max)Height, Top and Left properties.

Regards,
George
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Window
Asked by
Yaroslav
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or