Search
WindowBase.contentLoad Event
See Also
 






Raised when the windows's contents are loaded.

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

 Syntax

JavaScript  Copy Code

EventDispatcher contentLoad

 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
An EventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code handles the contentLoad event of a Window class to minimize the Window:

JavaScript  Copy Code

var u = MindFusion.Common.UI;

window.contentLoad.addEventListener(contentLoadEventHandler);

function contentLoadEventHandler(sender, args)
{
  //if the window is minimized
  if(sender.title === "New Chat Window")    
      sender.minimize();
     
}

 See Also