Title: StackPanel
container: Collection of
UIElement objects - Course Silverlight 3 - Lesson 5
Duration: 17 minutes
Summary: In this video, we continue our discussion on layouts by discussing the StackPanel container. A StackPanel contains a collection of UIElement objects. Elements can be aligned in a StackPanel horizontally or vertically. To show off these features, we create two StackPanels and two buttons. The first StackPanel will have a horizontal orientation and the second will have a vertical orientation. In the code behind, we add code to the buttons so the user can dynamically add buttons to both StackPanels. When a user clicks on a button within the StackPanel, the button text will change.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: Silverlight 3 and Visual Studio 2010.
Keywords: Silverlight 3, XAML, Grid, Canvas, TextBlock, TextBox, Button, ColumnDefinition, RowDefinition, DatePicker, StackPanel, Orientation.