Managing Windows

WPF allows managing windows similarly to Windows Forms, although there are some obvious differences, such as the fact that WPF windows can be considered as the root container for all other child panels when arranging UI elements. Whatever way you decide to apply windows properties, at design time such properties are addressed in XAML code, but you are also allowed to set them at runtime in Visual Basic code. Available properties allow establishing the window startup position, its resize mode, its appearance on the task bar, and so on. Table 31.2 summarizes the most important available properties.

Table 31.2 Window’s Properties

You can take advantage of the Properties tool window for setting the previously mentioned properties ...

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.