New to Telerik UI for WPF? Download free 30-day trial

Telerik Application Lifecyle Using Telerik UI for WPF Extension

This article describes the lifecycle of a Telerik application. This includes creating, deploying, redistributing and upgrading an application with referenced Telerik dlls.

The topic shows what is the lifecycle when using the Telerik UI for WPF Extension to reference Telerik dlls. As an alternative, you can use MSI or Zip files, or NuGet as shown in the corresponding articles in this documentation section.

Creating a Project

To create a project open a Visual Studio solution and use the Telerik UI for WPF option from the Telerik UI for WPF Extension menu to reach the Create New Telerik Project option. This will start a wizard that helps you to configure a new Telerik WPF project. Follow it and you will get a new project with referenced Telerik dlls. Read more about the exact steps in the Create Project article from the Visual Studio Extensions section.

If you already have a WPF project you can add Telerik assemblies using the Convert Project Wizard of the extension.

Configurating a Telerik Project

To add and remove Telerik dlls or change the Telerik theme you can use the Project Configuration Wizard.

Adding Telerik Controls

After you create the WPF project and install the nugets, add any UI and related code-behind, models, and styles. This example will show a very basic setup which includes a RadTabControl with few tabs defined in XAML.

Example 1: Adding Telerik control in the UI

<Window x:Class="TelerikWpfApplication.MainWindow" 
    xmlns:local="clr-namespace:TelerikWpfApplication" xmlns:telerik="" 
    Title="MainWindow" Height="450" Width="800"> 
            <telerik:RadTabItem Header="Home" /> 
            <telerik:RadTabItem Header="Insert" /> 
            <telerik:RadTabItem Header="View" /> 
WPF Project with Added Tab Control

Deploying the Application

To deploy a WPF application, you can use several different approaches, like XCopy, ClickOnce or Windows Installer deployment. Read more about this in the Deploy a WPF Application MSDN article.

Redistributing Telerik Application

There are several rules that should be kept in mind when redistributing an application with Telerik dlls. Read more about this in the Redistributing Telerik Assemblies article.

Upgrading the Project

To upgrade the project you can use the Upgrade Project option from the Telerik UI for WPF Extension menu in Visual Studio. Read more about the exact steps in the Upgrade Project article from the Visual Studio Extensions section.

After the upgrade, double check if all the Telerik assemblies have the same version (for example, 2020.3.102) and if all or of the same type (Xaml or NoXaml). To check this, right click the .dll file (for example, Telerik.Windows.Controls.dll) and choose the Properties option.

WPF Telerik Assembly Properties Menu Option WPF Telerik Assembly No Xaml File Description

Delete the bin and obj folders of the projects that reference Telerik dlls in the solution and then Clean, and Rebuild them. This will ensure that no older Telerik dlls are cached and used during the compilation.

WPF Delete bin and obj Folders WPF Clean and Rebuild Solution

See Also

In this article