WindowStartupLocation and MaxWidth/MaxHeight

2 posts, 0 answers
  1. Yaroslav
    Yaroslav avatar
    15 posts
    Member since:
    Feb 2011

    Posted 17 Oct 2011 Link to this post

    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?
  2. George
    George avatar
    1332 posts

    Posted 18 Oct 2011 Link to this post

    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.

    the Telerik team

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

Back to Top