Nevron Open Vision Documentation
Child Windows

My First Child Window

A child window is represented by the NChildWindow class that derives from the NWindow class. 

In the Windows and The Desktop topic we have already mentioned that in order to be functional a window need to reside in the hierarchy of the NDesktop element singleton. Unlike top-level windows, which can be added to the Windows collection of each window, child windows can only be added to the NDesktop-Windows collection. This means that child windows are typically root windows for your application.

Creating a child window is typically the first thing to do, after you install NOV for a particular environment - see the Hosting NOV in your Application topic. Once you create that child window and add it the NDesktop-Windows collection, this child window needs to be explicitly hosted by some native for the presentation layer host, as seen in the following topics:

Hosting NOV in Windows Forms

Hosting NOV in WPF

Hosting NOV in Silverlight

So if you have followed the getting started topics, you have already created your first child window and populated it with a label that display the "Hello World from Nevron Open Vision" string.

Why Child Windows?

You may ask yourself - do we need child windows when we have top-level windows? Well there are several reasons for which child windows are needed:


See Also
Send Feedback