# Minimizing and Maximizing

The Window title bar provides commands to minimize it, maximize it to the viewport, or restore its default size. The [`stage`](https://www.telerik.com/kendo-vue-ui-develop/components/dialogs/api/windowprops#stage) property reflects the current view and accepts `DEFAULT`, `MINIMIZED`, or `FULLSCREEN`.

## Persisting the State

To set the initial stage and keep it in sync with the title bar actions, control the Window by:

1. Setting the [`stage`](https://www.telerik.com/kendo-vue-ui-develop/components/dialogs/api/windowprops#stage) property.
2. Updating the value in the [`stagechange`](https://www.telerik.com/kendo-vue-ui-develop/components/dialogs/api/windowprops#onstagechange) event handler by reading the `state` field of the third event argument.

If you close and reopen the Window while the parent retains the stage value, the Window reopens in the last stage.

The following example keeps the stage in the parent component and changes it from the title bar and from external buttons.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/dialogs/window/minimize-fullscreen/source.txt)

## Suggested Links

* [Controlled Window](https://www.telerik.com/kendo-vue-ui-develop/components/dialogs/window/controlled-mode)
* [API Reference of the Window](https://www.telerik.com/kendo-vue-ui-develop/components/dialogs/api/windowprops)
