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

Adjust minimize and maximize behaviour on radWindow

1 Answer 122 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rizk
Top achievements
Rank 1
Rizk asked on 05 Mar 2013, 06:35 AM
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 ?

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 08 Mar 2013, 09:37 AM
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,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Window
Asked by
Rizk
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or