Introduction

Part1 : Introduction to WPF

How to Build a WPF Application in Visual Studio?

Introduction to Controls

Button

Image : Displays a graphical image. There are two important and useful properties of the image controls as follows:

Simple Code Snippet:

<Image Width="Auto" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Source="World.jpg" Stretch="UniformToFill"/>

Grid : A powerful control in WPF, lets you arrange children controls in rows and columns. Key properties of Grid are as follows:

Note: A child controls uses these properties to get placed in the grid at appropriate positions.

StackPanel : Another good control of Category is "Content Control" . It arranges the child controls either vertically or horizontally in a single column or row. A few key properties are as follows:

TextBlock : Displays read-only text and provides additional features like line wrapping, bold text etc. Can change text appearance inline by making it bold, italic or underlined. Can add Line Breaks etc. The key properties are as follows:

Summary

In this article, we discussed various and very basic controls and a few key properties. It will help the beginners to understand the control's importance and how properties can be used. In an upcoming article will be an implementation of Controls and more usage of properties.

Thanks for reading. Please provide your valuable inputs and suggestions.