May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Creating and displaying windows at runtime is a common task in every client application. To accomplish this you simply create an instance of a System.Windows.Window and then invoke the Show or ShowDialog methods, depending if the Window must be considered a modal dialog or not. The following Visual Basic code demonstrates how you create and show a new Window:

In the preceding code a new Window is generated from scratch, so this requires specifying all properties. In most cases you can instead create and show instances of existing windows that you implemented at design time; for this, in the above code you just ...
Read now
Unlock full access