In document "WpfAppType3" we understood StartUpUri and
StartUp event, in XAML mark-up pane.
In this example we are showing how to use MainWindow can
serve as Modal window; the child windows can be be closed
individually; however once you close the "MainWindow", all
the windows will shutdown at the same time.