O'Reilly logo

Windows Presentation Foundation 4.5 Cookbook by Pavel Yosifovich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Layout and Panels

In this chapter we will cover:

  • Creating a table-like user interface
  • Dynamically sizing grid rows/columns
  • Creating a scrollable user interface
  • Creating a border around panels and elements
  • Placing elements in exact positions
  • Adding/removing elements to a panel dynamically
  • Creating a tabbed user interface
  • Implementing drag-and-drop

Introduction

Layout is the process of element placement, and how their size and position changes in response to user interactions (such as a window resize). WPF offers a bunch of layout panels that provide different ways to lay out elements. By combining those panels in various ways, complex and adaptive layouts can be created.

The layout process

Layout is a two-step process. First, the layout container ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required