.NET Answers

ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest.
Subscribe
  • Home
  • About Me
  • Advertising
  • Click Here to Ask a question
    • Privacy Policy
  • Site Map

SilverLight – Layout Managers

January 14, 2009 By: Dave

I know it is customary to start out presentations of new technology with a “Hello World” application, but if you have any interest in SilverLight you’ve probably already seen one of those and it really didn’t help you a whole lot.

Where we really need to start off is at the beginning, with the foundational concepts that will enable you to get moving on your own basic SilverLight application.  What you need to know is how SilverLight is like and unlike other things you might already know.

The best place to start in that regard is with the Layout Managers.

There are three basic layout managers available to you in SilverLight.  By nesting layout managers within other layout managers you can achieve the various types of layouts you might be looking for.

Canvas Layout
The one that will feel the most familiar to Windows programmers is the Canvas Layout.  Any controls you place within a Canvas Layout will be absolute positioned within the layout container.

image

Grid Layout
The Grid Layout will feel most familiar to web developers who have used the table tags for all of their layouts.  You can use the Grid Layout to create fixed or relative sized cells and you can place controls within a cell or have them span a cell.  This works a lot like the Windows Forms Grid Layout manager.

So that a grid defined like this:

image

Can be used to place elements like this:

image

Stacked Layout
The last layout manager places controls in a row or a column one after the other.  Either one under the other, or next to each other side by side.

image

Other Places Talking About SilverLight Layout Managers:

New layout controls in the Silverlight Toolkit – If you have special layout requirements you can use the DockPanel or WrapPanel source code as a starting point for your own layout control. I also recommend checking out Dave Relyea’s twopart series on the Silverlight 2 Layout System …

Silverlight Layout Control – Getting Started with XAML … – This video shows how to use XAML to create complex layouts using the AgLayoutControl™ Suite for Silverlight.

Silverlight – Layout Management – Silverlight and WPF support a flexible layout management system that enables developers and designers to easily coordinate how controls are positioned within a UI surface. This layout system supports both a fixed …

Silverlight 2.0 Layout Management – This is the most powerful layout container in Silverlight. It allows you to organize your elements into an invisible grid of rows and columns. Many elements can be placed inside a cell. That element can be another layout container. …

Silverlight Layout Control: building complex layouts from simple … – With the release of Silverlight 2 Beta 1, all developers got a long awaited layout management system and some useful panels: StackPanel and Grid. In addition to Canvas, these containers were intended to satisfy all the layout needs …


 

Other post in Silverlight
  • Installing Silverlight2 Tools for Visual Studio - December 31st, 2008
  • More on SilverLight Developer Installation - January 7th, 2009
  • SilverLight - Layout Managers - January 14th, 2009
  • Friday Books - Silverlight 2 in Action - January 16th, 2009
  • Review of the MDC at NYC - January 21st, 2009
  • Silverlight - Wire up your form for programming - February 4th, 2009
  • JavaScript vs Silverlight vs ... - February 10th, 2009
  • Silverlight - Databinding - February 17th, 2009
  • Friday Books - Data-Driven Services with SL2 - February 20th, 2009
  • Silverlight - Databinding ListBox - March 5th, 2009
  • Friday Books - Silverlight 2 Recipes - March 13th, 2009
  • Silverlight - Binding ResourceDictionaries - March 17th, 2009
  • Silverlight - RESX Files and Internationalization - April 2nd, 2009
  • Friday Books - Introducing MS Silverlight 2 - April 3rd, 2009
  • Silverlight, Web Services and Datasets - April 23rd, 2009
  • Silverlight – Databinding to a Web Service - April 27th, 2009
  • Silverlight – Navigating Data - May 7th, 2009

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Most Commented Post

  • Object Oriented Programming has Failed Us
  • Microsoft’s Biggest Mistake with ASP.NET
  • WordPress w/ Forms Authentication on IIS6
Bookmark to:

Add to Del.icio.us Add to digg Add to DotNetKicks Add to DZone Add to Facebook Add to Slashdot Add to Stumble Upon Add to Technorati
Hide Sites

Comments are closed.

← AS is in CSharp too.
jQuery, JSON, and ASP.NET →
  • Search

  • Subscribe

    U COMMENT
    I FOLLOW

    Subscribe in a reader

    OR

    Subscribe via e-mail

    Enter your email address: 

    Delivered by FeedBurner

     

  • Follow Me

    • Twitter
    • FaceBook
    • Digg
    • StumbleUpon
    • Propeller
    • Delicious
    • Plaxo

     

  • Recent Posts

    • ASUS Eee PC 1005HA-PU1X-BK Black Netbook
    • jQuery – Date Picker
    • Using VB.NET From CSharp
    • iTextSharp – Adding Images
    • Hungarian Notation – Use What Works, Spit Out The Bones
    • Pre Order Windows 7
    • jQuery Dialog – With Validation Controls
    • iTextSharp – The easy way
    • Structure of my ASP.NET Web Applications
    • 35% Off Accronis True Image 2009 Home
    • VB.NET Hide Module Name
    • ASP.NET/VB.NET – Video Training
    • Does jQuery Make Us Lazy?
    • PDFs Using iTextSharp
    • Programming SEO – Ping



  • Advertise on this site through Lake Quincy Media
  • DotNetNuke Sponsor

     

    Most Valuable Blogger
  • Sponsor

  • Categories

    • Advanced CSharp
    • Advanced VB.NET
    • ASP.NET MVC
    • Did you know
    • DotNetNuke – Module Development
    • DotNetNuke – Skinning
    • internationalization
    • iTextSharp
    • jQuery
    • none
    • Seach Engine Optimization
    • Silverlight
    • SQL For Programmers
    • Twitter
    • winforms
  • Cloud

    .net ajax architecture asp.net book books containers csharp css dal dataset datasets dotnetnuke events gridview images internationalization internet explorer javascript jQuery json linq listview modules ms-sql MVC objectdatasource programming reflection seo Silverlight skinning sql testing tsql tutorial Twitter twitterizer vb.net video view Vista visual studio webservice WordPress
  • Archives

    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
    • Privacy Policy
  • Calendar

    January 2009
    S M T W T F S
    « Dec   Feb »
     123
    45678910
    11121314151617
    18192021222324
    25262728293031
  • Blogroll

    • Alvin Ashcraft’s Morning Dew
    • ASP.NET Consulting
    • Life Hacker
    • Remember Anything
    • The Price of Their Toys
    • Uncategorized Thought


.NET Answers © 2007 - 2008 All Rights Reserved.
Entries and Comments.