Creating an Application and Adding Telerik Controls

The following topic describes what steps you should perform in order to add the Telerik UI for WPF in your application. There are two ways to do this - first one is to install Telerik Extensions for VisualStudio. The second one is by adding the necessary assemblies as references in your application manually. 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 Telerik Visual Studio Extensions

  1. Open Microsoft Visual Studio.

  2. Create new Telerik WPF application. For more information, check out the Create Project article.

    Figure 1: Creating new Telerik application

    Creating new Telerik application

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

  3. Choose the application template. The options are a blank template or one of the MS Office inspired application templates. Choose the Blank option.

    Figure 2: Choosing an application template

    Choosing an application template

    At this point the project references only the common Telerik.Windows.Controls.dll.

  4. Configure the project using the Project Configuration Wizard. This will add the dlls required by the controls you want to use. When you open the wizard you can select the control you are going to use from the list (or search them in the search box). Clicking OK will add all required references for the controls.

    Figure 3: Adding references to the charting controls

    Common Installing Creating Application 013 WPF

    This step is optional and you will need it only if use controls that are not defined in Telerik.Windows.Controls.dll.

Creating Application and Manually Referencing the Telerik Assemblies

  1. Open Microsoft Visual Studio.

  2. Create a new WPF application.

    Figure 4: Creating new WPF application

    Creating new application

  3. Add references to the Telerik assemblies. There are two options to do this.

    • Drag a Telerik control from the toolbox. When the control gets dropped onto the Visual Studio designer's surface, Visual Studio will automatically add the corresponding references.

    • Manually reference the Telerik dlls from the UI for WPF installation folder. The binaries are located in the UI for WPF installation folder/Binaries/ or *UI for WPF installation folder/Binaries.NoXaml/. To learn about the differences between the dlls in the Binaries and the Binaries.NoXaml folders, check out the Xaml vs NoXaml article.

Dragging Controls from Visual Studio Toolbox

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