Search
Container.bringToFront Method
See Also
 






Brings a child window to the front, effectively making it topmost and active.

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

 Syntax

JavaScript  Copy Code

function bringToFront (window)

 Parameters

window

WindowBase. The window to bring to front.

 Example

The following code creates a new WindowHost and then brings to front the first Window in its windows collection:

JavaScript  Copy Code

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

.......
.......

var window = host.windows[0];

if(window != null)
 host.bringToFront(window);

 See Also