# 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-react-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-react-ui-develop/components/dialogs/api/windowprops#stage) property.
2. Updating the value in the [`onStageChange`](https://www.telerik.com/kendo-react-ui-develop/components/dialogs/api/windowprops#onstagechange) event handler by using the `state` field of the event.

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-react-ui/dialogs/window/minimize-fullscreen/func/source.txt)

## Suggested Links

* [Learn about KendoReact Free.](https://www.telerik.com/kendo-react-ui-develop/components/getting-started/free-vs-premium)

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