Search
WindowHost.restoreAll Method
See Also
 






Restores all minimized and maximized child windows.

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

 Syntax

JavaScript  Copy Code

function restoreAll ()

 Example

The following code handles the windowStateChanged event for a WindowHost:

JavaScript  Copy Code

// create a new instance of the WindowHost control
var host = new ui.WindowHost(document.getElementById("host"));
host.width = host.height = new ui.Unit(100, ui.UnitType.Percent);
host.theme = "standard";
host.windowStateChanged.addEventListener(handleWindowStateChanged);
host.render();

function handleWindowStateChanged(sender, args)
{
     if(sender.windowState == ui.WindowState.Normal)
     {
          host.restoreAll();
     }
}

 See Also