Click or drag to resize

Window Methods

The Window type exposes the following members.

Methods
  NameDescription
Public methodaddEventListener Obsolete.
Registers an event listener on the specified event.
Public methodadoptWindow
Reparents the passed HWND with the current AppDesktop window.
Public methodanimate
Performs the specified window transitions.
Public methodblur
Removes focus from the window.
Public methodBringParentToFront
Will set the focus on the Parent container, in the case of windows being embeded.
Public methodbringToFront
Brings the window to the front of the window stack.
Public methodclose
Closes the window.
Public methoddisableFrame
Prevents a user from changing a window's size/position when using the window's frame.
Remarks
'disabled-frame-bounds-changing' is generated at the start of and during a user move/size operation. 'disabled-frame-bounds-changed' is generated after a user move/size operation. The events provide the bounds that would have been applied if the frame was enabled. 'frame-enabled' is generated when a disabled frame has becomes enabled.
Public methodDispose
Disposes the current window reference and unhooks all subscribed events.
Public methodembedInto
Embeds a window in a target hWin
Public methodenableFrame
Re-enables user changes to a window's size/position when using the window's frame.
Remarks
'disabled-frame-bounds-changing' is generated at the start of and during a user move/size operation. 'disabled-frame-bounds-changed' is generated after a user move/size operation. The events provide the bounds that would have been applied if the frame was enabled. 'frame-enabled' is generated when a disabled frame has becomes enabled.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodexecuteJavascript
Executes JavaScript on the content of the Window
Public methodExecuteJavascriptAsync (Inherited from WebContents.)
Public methodFindInPageAsync (Inherited from WebContents.)
Public methodflash
Draws attention to the window by flashing the taskbar and window caption.

This effect continues until explicitly removed by calling stopFlashing

Public methodfocus
Gives focus to the window.
Public methodFocusAsync (Inherited from WebContents.)
Public methodgetBounds
Gets the current bounds (top, left, width, height) of the window.
Public methodgetGroup Obsolete.
Passes a list of wrapped windows in the same group.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodgetName Obsolete.
Returns the name of the window As registered with the AppDesktop.
Public methodgetNativeId
Gets the window's platform specific identifier.
Public methodgetOptions
Returns the current options as stored in the desktop.
Public methodgetParentApplication Obsolete.
Returns the wrapped application that this window belongs to.
Public methodgetParentWindow
Returns the wrapped main window of the application that this window belongs to.
Public methodGetPrintersAsync (Inherited from WebContents.)
Public methodgetSnapshot
Gets a base64 encoded PNG snapshot of the window.
Public methodgetState
Gets the current state ("minimized", "maximized", or "restored") of the window.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodgetUuid Obsolete.
Returns the parent Application's UUID.
Public methodGetViewsAsync
Gets all active platform views for a window.
Public methodgetZoomLevel
Gets the current zoom level of the window
Public methodGetZoomLevelAsync (Inherited from WebContents.)
Public methodhide
Hides the window.
Public methodisShowing
Determines if the window is currently showing.
Public methodjoinGroup Obsolete.
Joins the same window group as the specified window.
Public methodleaveGroup Obsolete.
Leaves the current window group so that the window can be move independently of those in the group.
Public methodmaximize
Maximizes the window.
Public methodmergeGroups Obsolete.
Merges the instance's window group with the same window group as the specified window.
Public methodminimize
Minimizes the window.
Public methodmoveBy
Moves the window by a specified amount.
Public methodmoveTo
Moves the window to a specified location.
Public methodmoveToSync
Moves the window to a specified location. synchronously
Public methodnavigate
Navigates the Widnow to the specified address.
Public methodNavigateAsync (Inherited from WebContents.)
Public methodnavigateBack
Navigates the Widnow to the previous content.
Public methodNavigateBackAsync (Inherited from WebContents.)
Public methodnavigateForward
Navigates the Widnow to the forward content.
Public methodorphanWindow
Unparents the window identified by HWND and moves it to left, top.
Public methodparentWindowMovedCalibration
In an embedded window scenario, when the parent window moves there is calibration needed.
Public methodparentWindowMoveStartCalibration
In an embedded window scenario, when the parent window starts to move there is calibration needed.
Public methodPrintAsync (Inherited from WebContents.)
Public methodrefresh
Causes the Window to refresh.
Public methodreload
Reloads the Widnow content.
Public methodReloadAsync (Inherited from WebContents.)
Public methodremoveEventListener Obsolete.
Removes a previously registered event listener from the specified event.

The listener is passed an event object containing information related to the event.

Public methodresizeBy(Int32, Int32, AckCallback, AckCallback)
Resizes the window by the specified amount with a "top-left" anchor
Public methodresizeBy(Int32, Int32, String, AckCallback, AckCallback)
Resizes the window by the specified amount.
Public methodresizeTo(Int32, Int32, AckCallback, AckCallback)
Resizes the window to the specified dimensions with a "top-left" anchor.
Public methodresizeTo(Int32, Int32, String, AckCallback, AckCallback)
Resizes the window to the specified dimensions.
Public methodrestore
Restores the window to its normal state (i.e., unminimized, unmaximized).
Public methodsetAsForeground
Set's the window as the foreground window.

The window is activated(focused) and brought to front.

Public methodsetBounds
Set's the bounds (top, left, width, height) of the window.
Public methodsetZoomLevel
Sets the zoom level of the window
Public methodshow
Shows the window if it is hidden.
Public methodshowAt
Shows the window if it is hidden at the specified location.

If the toggle parameter is set to true, the window will alternate between showing and hiding.

Public methodshowDeveloperTools
Shows window's developer tools.
Public methodShowDeveloperToolsAsync (Inherited from WebContents.)
Public methodStopFindInPageAsync (Inherited from WebContents.)
Public methodstopFlashing
Removes a flashing taskbar/window caption effect if present.
Public methodStopNavigationAsync (Inherited from WebContents.)
Public methodstopWindowNavigation
Stops currently loading Widnow content.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodupdateOptions
Changes a window's options that were defined upon creation.
Public methodStatic memberwrap Obsolete.
Attaches a Window object to an application Window that already exists.
Top
See Also