Search
WindowBase.windowClose Event
See Also
 






Raised when the Window is closed.

Namespace: MindFusion.Common.UI
File: WindowBase.js

 Syntax

JavaScript  Copy Code

EventDispatcher windowClose

 Event Data

The event handler method receives the following arguments:
sender
A WindowBase instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A ControlModifiedEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code handles the windowClose event of the Window class.

JavaScript  Copy Code

var u = MindFusion.Common.UI;

window.windowClose.addEventListener(windowCloseEventHandler);

function windowCloseEventHandler(sender, args)
{
    sender.detach();
    sender.dispose();
}

 See Also