Window in WPF

In this blog I am trying to explain the concept of Window Class in WPF.

Windows in WPF Applications

We are says the window is use to interact a user with applications. The essential purpose of a window is to host and display content.  The type of content that a window hosts depends on the type of data that an application operates over, which can include media, Extensible Application Markup Language (XAML) pages, Web pages, documents, database tables and records, and system information.

The following figure illustrates the constituent parts of a window.

A window is divided into two areas: the non-client area and client area.

The non-client area of a window is implemented by WPF and includes the parts of a window that are common to most windows, including the following:

·         A border.

·         A title bar.

·         An icon.

·         Minimize, Maximize, and Restore buttons.

·         A Close button.

    A System menu with menu items that allow users to minimize, maximize, restore, move, resize, and close a window.

The client area of a window is the area within a window's non-client area and is used by developers to add application-specific content, such as menu bars, tool bars, and controls.

In WPF, a window is encapsulated by the Window class that you use to do the following:

·         Display a window.

·         Configure the size, position, and appearance of a window.

·         Host application-specific content.

·         Manage the lifetime of a window.

Leave Comment