Search
ControlModifyingEventArgs.control Property
See Also
 






Gets the control that is being modified.

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

 Syntax

JavaScript  Copy Code

get control() {}

 Property Value

Control. The control that is modified.

 Example

The following code handles the windowOpening event of a Window class.

JavaScript  Copy Code

var u = MindFusion.Common.UI;

window.windowOpening.addEventListener(windowOpeningEventHandler);

function windowOpeningEventHandler(sender, args)
{
  //if the window is minimized
  if(args.control === importantWindow)
      args.cancel = true;
}

 See Also