Duration: 18 minutes
Summary: In this video, we are proceeding with the standard controls discussion. The key point in today’s discussion is the ListBox. We will see how to work with simple listboxes and more advanced listboxes. To start, we will create a listbox that contains a list of programming languages (Java, C#...). We will also create a button. Once clicked all the items selected on the ListBox will be displayed in a textbox.
In the second scenario, we will create a ListBox that contains a stack panel of image and text. We will populate the ListBox programmatically. The top item in the stack panel is an image, and the second item is the name of the image. The ListBox has the single item selection turned on. Now, when the user selects an item from the list, the corresponding image will be displayed in the image control on the right.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: Silverlight 5 and Visual Studio 2010
Keyword: Silverlight 5, Visual Studio 2010, XAML, Border, Border, Grid, ListBox, ListBoxItem, Content, Text, StackPanel, Button, TextBox, Image, BitmapImage, Uri, UriKind, Children, Items.