Skip to content

Understanding XAML-Layouts

09/04/2014

Milin Joshi

In the continution of previous article of Understanding XAML-Intro, this post describes how to order controls with the help of XAML elements for getting required layout. XAML elements are similar to HTML Elements. We can define atributes for the XAML Elements that define the style and position of the element, just like HTML & CSS except the attributes should be defined “inline” only. The two mainly used attributes used are “Height” and “Width” . They define the dimensions for the element.Take following example for considerationFor Layout, Windows has provided two main elements for positioning an element.1)Grid
2)StackPanel

Grid

Grid Control acts as “Grid” to put the elements into it. We can divide the display screen into number of grids as required. Grid has two SubElements for definfnig number of rows and columns that the screen is divided into.

Above code has following output
As shown above that the screen…

View original post 164 more words

From → Reblogged

Leave a Comment

Comments please...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: