Adjust minimize and maximize behaviour on radWindow

2 posts, 0 answers
  1. Rizk
    Rizk avatar
    13 posts
    Member since:
    Feb 2013

    Posted 05 Mar 2013 Link to this post

    Hello Telerik

    i want to customize the size of radwindow when its minimize or maximize and the position when its minimize
    can anyone help me ?
  2. Georgi
    Georgi avatar
    344 posts

    Posted 08 Mar 2013 Link to this post

    Hello Rizk,

    There is no way to achieve this scenario out of the box. So what you can try is to hook on the WindowStateChanged event and check if the state is minimized and if so to change the window position as shown in the attached project.
    The tricky part comes with the maximize state as the window would  take all its available area. Therefore what you can try is to restrict the window to a specific area. In order to achieve that you can set IsRestrictedWhenMaximized="True" IsRestricted="True" and on the Loaded event of the window to set the restriction to an area - this.RestrictedAreaMargin = new Thickness(100);
    Please note that this is not designed to be changed run time so it may lead to some unexpected behavior.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top