Skip to main content
  • 210 Accesses

Abstract

What this chapter covers:

  • The Grid

  • The Canvas

  • The StackPanel

  • The WrapPanel

  • The DockPanel

  • The ScrollViewer

  • The Border

  • The UniformGrid

  • The ViewBox

As I already discussed, WPF/Silverlight use XAML to create the user interface (UI) layer that provides the “face” of any WPF or Silverlight application. In other words, XAML allows the developer to create the interface that users will see when they use your application. WPF uses layout elements in order to arrange your content such as Images, MediaElements, Buttons, and any other UI FrameWork elements. I tend to think of layout elements much like tables in HTML. Of course, as you may have already guessed, WPF controls are a lot more complex than HTML tables, but the comparison should help to provide you with a starting point of what layout elements are. In this chapter, I will discuss all of the most popular layout elements by talking about what makes them unique and when it is appropriate to use each one. I will also walk you through creating a new project that uses each one.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Victor Gaudioso

About this chapter

Cite this chapter

(2008). Layout elements. In: Foundation Expression Blend 2. Apress. https://doi.org/10.1007/978-1-4302-0612-5_5

Download citation

Publish with us

Policies and ethics