Search
Window.resizeStart Event
See Also
 






Raised when a resize operation is started.

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

 Syntax

JavaScript  Copy Code

EventDispatcher resizeStart

 Event Data

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

 Example

The following code handles the resizeStart event of a Window instance and allows dragging of the Window:

JavaScript  Copy Code

window.resizeStart.addEventListener(windowEventHandler);


function windowEventHandler(sender, args)
{
 if(args.action == ui.InteractionType.Drag)
 {
       sender.allowDrag = true;
 } 
}

 See Also