What is WPF

Introduction of WPF and XAML

WPF introduced in the .net framework 3.0. WPF introduced highly rich features for windows client application that includes XAML, data binding, controls, 2-D and 3-D Graphics, Media, Document, Dependency Property etc. apart from this with the help of WPF you can create both standalone application and web based application which is known as XBAP(XAML browser application)


Layout in WPF

Grid Layout in WPF

The Grid layout arranges control in WPF in a tabular format which means in the form of Row and Column. It works same as we use table Tag in HTML. We define Row in Grid Layout in WPF by using RowDefinition and Column by using ColumnDefinition.


Stack Layout in WPF

Stack panel layout arrange control either vertically or horizontally. At the time of stack layout creation you have to set the property Orientation either as Vertical or as Horizontal.


Dock Panel Layout in WPF

Dock panel is panel which allows you to arrange controls on left, right, top and bottom. At the time of control adding you have to set the property DockPanel.Dock either on left, right, top, and bottom.