The Window control derives from WindowBase and represents a window with header, content and status bar. The content of the Window can be either a Template or a web page, displayed within a generated IFrame object. Windows within the WindowHost can be free-floating, minimized, maximized or pinned in position.
Like all controls derived from WindowBase, choosing the content of the control is done by either specifying a Template or by setting the NavigateUrl property. Set the EnabledInteractions property to predefine the available user interactions on the control. Use WindowState and Visibility to determine the initial state of the control. Chose which parts of the window are shown by setting WindowStyle. Style the control through Theme, HeaderCssClass, ContentCssClass, FooterCssClass and/or StatusCssClass. Specify constrains through MinWidth and MinHeight or let the control size itself according to its content through AutoSize.
ASPX
![]() |
---|
<%-- Window1 is in the default state - all interactions are enabled, it is visible and in normal state. --%> |
![]() |
---|
For additional information on templating the content of the Window control, please refer to the Templates topic. |
The following events are exposed by the Window control.
Event | Event arguments | Description |
---|---|---|
Raised when a Window is closed. |
Commonly the Window control should be placed inside a WindowHost parent control. Access it from its getAllWindows method or directly by it's ClientID.
JavaScript
![]() |
---|
// through the parent WindowHost |
Use the minimize, restore, close and show methods to respectively minimize, restore, close or show the window. Use the set_enabledInteractions method to define the possible user interactions on the control. Refresh the internal iframe or change the displayed web page by set_navigateUrl.
The following client-side events are exposed by the Window class.
Event | Event arguments | Script property | Description |
---|---|---|---|
Raised when the user starts to drag a control with the mouse. | |||
Raised during a drag operation. | |||
Raised when the user finishes to drag a control with the mouse. | |||
Raised when the user starts to resize a control with the mouse. | |||
Raised during a resize operation. | |||
Raised when the user finishes to resize a control with the mouse. | |||
Raised when a window is about to open. | |||
Raised when a window has opened. | |||
Raised when a window is about to close. | |||
Raised when a window has closed. | |||
Raised when the window state is currently changing. | |||
Raised when the window state has changed | |||
Raised when the user clicks the window header. | |||
- | Raised when the internal iframe has finished loading. | ||
- | Raised just after the control has finished loading and is ready for interaction. |