Grid Panel In Silverlight 3 Using Blend 3

No.of Views539
Bookmarked0 times
Downloads 
Votes0
By  dpatra   On  16 Feb 2010 00:02:00
Tag : Silver Light and XAML , How to
Grid Panel In Silverlight 3 Using Blend 3
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

In this article we will explore how can we add Rows and Columns in Silverlight 3 using Blend 3.

Crating Silverlight Project

Fire up Blend 3 and create a Silverlight Application. Name it as GridPanelInSL3.

Image Loading,...

Now you have created the Silverlight 3 Application, by default A Grid Panle is added to the User Control and named as LayoutRoot.


Select the Grid and in the Properties Pane find out the properties called RowDefinitions and ColumnDefinitions.


To find it easily in the Property Search Box type “def” and you wiil get it fast.

Image Loading...

Image Loading...

Now you know that you can get it from Layout Tab.


We will add four Columns to the Grid. Click the ColumnDefinitions (Collection) and you will find a dialog box pop up as follows:

Image Loading...

There are four options available as Delete, Move Up, Move Down and Add another Item.


Now that we don’t have any columns defined add four columns and you will see as follows:

Image Loading...

Now if you press ok and see your Grid you will find four columns added to the Grid.

Image Loading...

Now go back to the ColumnDefinitions Properties Dialog Box. We will change properties there.

Select the third column and see the right side pane you will find several properties too.

Image loading...

I have changed the Width to 100 and type to Pixel.
We have three types for the Layout as:
• Star
• Auto
• Pixel
We have two more Properties as MaxWidth and MinWidth. Go ahead and play with it.

Similarly we will add RowDefinitions to the Grid as follows:

Image Loading...

Our Grid Layout will look like the following.
Enjoy Coding.

Image Loading....

Thank you


About the Author


Diptimaya Patra

Description :I am a Master in Computer Application (MCA) from SRM University, Chennai. I am MCTS in ASP.Net Web Development, and MOSS 2007 Administration. I have extreme exposure to Microsoft Technologies in recent times like Silverlight 2, Silverlight 3. I am from Cuttack, Orissa. You can reach me using this mail (diptimaya.patra@gmail.com). Currently I am working as a Software Engineer in UST Global Inc in Trivandrum Center.

Occupation :Software Engineer
Company : UST Global.
Location : India
Follow me at twitter : http://twitter.com/dpatra


 
Sign Up to vote for this article
 
About Author
 
dpatra
Occupation-Not Provided
Company-Not Provided
Member Type-Expert
Location-Not Provided
Joined date-13 Jul 2009
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top