Creating an Application and Adding UI for Silverlight

The following topic describes what steps you should perform in order to add the Telerik UI for Silverlight in your application. There are two ways to do this - first one is to install Telerik UI Extensions for VisualStudio which is the easiest and preferrable way. The second one is by adding the necessary assemblies as references in your application. No matter which of the two manners you will choose, you will be able to use the Toolbox to create your application.

Creating Application with Visual Studio Extensions installed

You can choose .Net Framework 4.0 or .Net Framework 4.5 for your application.

  • On the next step you can choose which assemblies to add to your application. For example if you intend to use RadGridView in your application you can check Telerik.Windows.Controls.GridView assembly and all other required dlls will be checked automatically.
    Common Installing Creating Application 013

  • After doing this your application should look like this:

<UserControl x:Class="RadControlsSilverlightApp1.MainPage"
        xmlns:x=""&#13;        xmlns:d="" 
        xmlns:mc=""&#13;        xmlns:telerik=""&#13;        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot">

Creating Application without Visual Studio Extensions installed

You can choose .Net Framework 4.0 or .Net Framework 4.5 for your application.

Dragging Controls from Visual Studio Toolbox

  • Add the Telerik Silverlight controls to your toolbox.

If you wonder which control in which assembly belongs to, read the main topic about Controls Dependencies.

  • Open MainPage.xaml of the project you have previously created.

  • Select any control in the Visual Studio toolbox.

  • Drag and drop the control in the appropriate place in xaml. The result of this operation should be similar to this.

    xmlns:x=""&#13;    xmlns:d="" 
    xmlns:mc=""&#13;    xmlns:telerik=""    
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <Grid x:Name="LayoutRoot">

Note that after dropping a control, Visual Studio automatically creates a namespace that points to the appropriate assembly. If you want to manually set up a namespace take a look at the Namespace Declaration topic.

See Also

In this article
Not finding the help you need? Improve this article