Instructions

Note: In order to develop applications using Extended Silverlight ListBox, Visual Studio 2010 and Silverlight 4 or 5 must be installed. Precompiled DLLs are included under the \bin folder, but if you wish to compile the project for yourself, use Xceed.Silverlight.ListBox.Blueprint.sln.
  • Create a new Silverlight application from the installed templates in Visual Studio 2010.
  • In the New Silverlight Application dialog, make sure that Silverlight 4 or 5 is selected.
  • Add the references to the appropriates assemblies manually by right-clicking on the main project and selecting the Add Reference... menu item, which will open the Add Reference dialog box in which you can select the assemblies from the .NET tab. Browse to the folder where you downloaded the listbox project; precompiled DLLs can be found under the \bin subfolder. Click on OK.
  • Now that the assemblies have been added, the required namespaces, which are included within the schema context, must be mapped using the xmlns attribute:
xmlns:sllb="http://schemas.xceed.com/silverlight/xaml/listbox" 
  • And the listbox must be added to the page, window, or user control:
<UserControl x:Class="Xceed.Silverlight.Documentation.MainPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:sllb="http://schemas.xceed.com/silverlight/xaml/listbox"
             x:Name="myPage">
    <Grid x:Name="LayoutRoot">
        <sllb:ListBox x:Name="listBox"/>                             
    </Grid>
</UserControl>
  • The last step is to bind the listbox to a data source, which is accomplished in the same way as the stock Silverlight listbox control.
Brief description of namespaces

Xceed.Silverlight.Controls contains classes related to controls used by Xceed's Silverlight products.

Xceed.Silverlight.Data contains all data-management related classes and interfaces.

Xceed.Silverlight.Controls contains classes related to controls used by Xceed's Silverlight products.

Xceed.Silverlight.ListBox contains all the main classes and interfaces.

Last edited May 17, 2012 at 4:49 PM by DavidCPx, version 2

Comments

No comments yet.