# Installing Telerik UI for WPF

The Telerik UI for WPF suite is distributed with multiple installation methods that can be used according to the developer's needs.

> important The recommended methods are using the [Telerik CLI](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/telerik-cli) and the [NuGet packages](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/installation-guide#tab-1-nuget-installation)

<TabStrip>
<TabStripTab title="NuGet Installation">

Telerik UI for WPF is distributed via NuGet packages, allowing easier installation and maintenance.

To install the product:

1. Open any terminal and install the [Telerik CLI](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/telerik-cli).

   ```bash
   dotnet tool install -g Telerik.CLI
   ```

2. Call the `telerik setup wpf` command in the terminal.

   ```bash
   telerik setup wpf
   ```

3. Use the **NuGet Package Manager** to install the needed Telerik packages in your project. For example, `Telerik.UI.for.Wpf.AllControls.Xaml`.

   ```xml
   <PackageReference Include="Telerik.UI.for.Wpf.AllControls.Xaml" Version="*" />
   ```

</TabStripTab>
<TabStripTab title="MSI Installation">

The `.msi` installer installs the suite on your computer to a folder named **Progress** in your Program Files, automatically creating the necessary virtual folders and projects.

To install the product:

1. Download the `Telerik_UI_for_WPF_[version]_[license].msi` file from the [Telerik UI for WPF download page](https://www.telerik.com/account/product-download?product=RCWPF).

2. Run the installer and follow the instructions.

   The MSI installation **will not overwrite** previous Telerik UI for WPF installations, unless it is of the same version.

   In the installation directory (default: `C:\Program Files (x86)\Progress\Telerik UI for WPF [version]`) you will see the following folders:

   * `\Binaries`
   * `\Binaries.NoXaml`
   * `\LicenseAgreements`
   * `\Themes.Implicit`
   * `\VSExtensions`

3. Use the [Visual Studio's Reference Manager](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-add-or-remove-references-by-using-the-reference-manager?view=visualstudio) to browse and reference the Telerik dlls in your WPF project.

   ![Telerik UI for WPF assemblies added to Visual Studio project references](https://www.telerik.com/products/wpf/documentation/assets/2961eebd4f94535467a7db50299ff546/msi-or-zip-setup-lifecyle-5.png)

4. [Install a license key](https://www.telerik.com/products/wpf/documentation/installation/licensing/installing-license-key#adding-a-license-to-projects-using-telerik-assembly-references-no-nuget-packages).

   ```C#
   [assembly: global::Telerik.Licensing.EvidenceAttribute("your-WPF-script-key-here")]
   ```

</TabStripTab>
<TabStripTab title="ZIP Installation">

Telerik provides a `.zip` file containing the files distributed with Telerik UI for WPF.

To install the product:

1. Download the `Telerik_UI_for_WPF_[version]_[license]_Dlls.zip` file from the [Telerik UI for WPF download page](https://www.telerik.com/account/product-download?product=RCWPF).

2. Extract the contents of the `.zip` file in a location of your choice.

   The archive contains the following folders:

   * `\Binaries`
   * `\Binaries.NoXaml`
   * `\LicenseAgreements`
   * `\Themes.Implicit`
   * `\VSExtensions`

3. Use the [Visual Studio's Reference Manager](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-add-or-remove-references-by-using-the-reference-manager?view=visualstudio) to browse and reference the Telerik dlls in your WPF project.

   ![Telerik UI for WPF assemblies added to Visual Studio project references](https://www.telerik.com/products/wpf/documentation/assets/2961eebd4f94535467a7db50299ff546/msi-or-zip-setup-lifecyle-5.png)

4. [Install a license key](https://www.telerik.com/products/wpf/documentation/installation/licensing/installing-license-key#adding-a-license-to-projects-using-telerik-assembly-references-no-nuget-packages).

   ```C#
   [assembly: global::Telerik.Licensing.EvidenceAttribute("your-WPF-script-key-here")]
   ```

</TabStripTab>
<TabStripTab title="VSX Installation">

The UI for WPF product can be installed also via the Telerik UI for WPF Extension for Visual Studio (VSX). The extension installs also a project template in Visual Studio that allows easier creation of Telerik WPF projects.

1. To get the extension, you can either install product via the [.msi installer](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/installation-guide#tab-2-msi-installation) or use the [Extensions](https://learn.microsoft.com/en-us/visualstudio/ide/finding-and-using-visual-studio-extensions?view=visualstudio) menu in Visual Studio to download the extension from the marketplace (*"Progress Telerik UI for WPF Extension"*).

   ![Visual Studio Extensions and Updates manager showing Telerik UI for WPF installation options](https://www.telerik.com/products/wpf/documentation/assets/baf21e2eb4760ea379f829b200196993/installation-options-vsx-extensions-manager.png)

2. In Visual Studio use the Telerik WPF Application project template to create a WPF project.

   ![Visual Studio Extensions menu showing Telerik UI for WPF options](https://www.telerik.com/products/wpf/documentation/assets/68815fbd7136fd7a6015c7653308f455/installation-options-vsx-menu.png)

3. Follow the Create New Project Wizard to setup the project.

   ![Visual Studio WPF application template selection for adding a Telerik UI for WPF control](https://www.telerik.com/products/wpf/documentation/assets/02f7b73bfc6ca5c95ccd22b5e565c51d/installation-adding-to-application-create-application-and-adding-control-2.png)

4. In case you haven't installed a [license key](https://www.telerik.com/products/wpf/documentation/installation/licensing/installing-license-key) already, you can download one using the License Validation screen.

> caption License validation screen (license not found)

```
![Telerik UI for WPF license validation screen in Visual Studio](images/installation-adding-to-application-create-application-and-adding-control-license-validation.png)
```

> caption License validation screen (successfully downloaded a license)

```
![Telerik UI for WPF license validation screen after a successful download](images/installation-adding-to-application-create-application-and-adding-control-successfull-download.png)

If you have a license key already installed the License Validation screen will be skipped.
```

You can further configure the project using the Project Configuration Wizard. You can do that by going to the **Extensions > Telerik > Telerik UI for WPF > Configure Project** menu in Visual Studio. When you open the wizard you can select the controls you are going to use from the list (or search them in the search box). Once you have selected them, click Finish. This will add the required dlls and references to your project.

> caption Adding references to the charting controls

![Visual Studio WPF application with a Telerik UI for WPF control added](https://www.telerik.com/products/wpf/documentation/assets/67683069ba7725e86658d995bcd4708e/installation-adding-to-application-create-application-and-adding-control-3.png)

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

</TabStripTab>
<TabStripTab title="Progress Control Panel">

The Telerik UI for WPF controls can also be installed via the **Progress Control Panel**.

![Progress Control Panel showing Telerik UI for WPF products](https://www.telerik.com/products/wpf/documentation/assets/acb18c907ac1b2056d9a3e4e07035b0f/progress-control-panel-1.png)

To install the product:

1. Download the [Progress Control Panel](https://www.telerik.com/download-trial-file/v2/control-panel)

2. Run the downloaded `.exe` file.

3. On the login screen use your Telerik account credentials.

   ![Progress Control Panel login screen for Telerik UI for WPF installation](https://www.telerik.com/products/wpf/documentation/assets/51d52e2aede4c3cdf2b305aaf92d6216/progress-control-panel-2.png)

4. Select the Telerik UI for WPF product in the products list on click **Proceed**.

   ![Progress Control Panel list of available Telerik UI for WPF products](https://www.telerik.com/products/wpf/documentation/assets/456f8b487c383ef189a49bc76f0a55df/progress-control-panel-3.png)

5. Follow the screens to configure the installation.

   ![Progress Control Panel Telerik UI for WPF installation configuration page](https://www.telerik.com/products/wpf/documentation/assets/13c38252dc7be8dec05df5ef30e3a878/progress-control-panel-4.png)

   The Progress Control Panel will download the necessary files for installation and then install them to the location you selected.

   The installation directory contains following folders:

   * `\Binaries`
   * `\Binaries.NoXaml`
   * `\LicenseAgreements`
   * `\Themes.Implicit`
   * `\VSExtensions`

</TabStripTab>
</TabStrip>

## Add Telerik Controls in the Project

For this example we will use [RadGridView](https://www.telerik.com/products/wpf/documentation/controls/radgridview/overview2).

1. Open the WPF project with the Telerik references in Visual Studio.

2. To use RadGridView install the `Telerik.Windows.Controls.GridView.for.Wpf.Xaml` nuget package, or reference the following assemblies:

   * `Telerik.Windows.Controls`
   * `Telerik.Windows.Controls.GridView`
   * `Telerik.Windows.Controls.Input`
   * `Telerik.Windows.Data`

3. Define a basic model for the items in the data grid.

   ```C#
   public class Profile
   {
   	public int ID { get; set; }
   	public string Name { get; set; }
   	public DateTime Date { get; set; }
   	public bool IsChecked { get; set; }
   }
   ```

4. Populate a collection with the model.

   ```C#
   public MainWindow()
   {
   	this.InitializeComponent();
       var source = new ObservableCollection<Profile>();
       DateTime date = DateTime.Now;
       for (int i = 0; i < 10; i++)
       {
       source.Add(new Profile() { ID = i, Name = "Item" + i, Date = date, IsChecked = i % 2 == 0 });
       date = date.AddDays(7);
       }
       gridView.ItemsSource = source;
   }
   ```

5. Add `RadGridView` in the XAML.

   ```XAML
   <Grid xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
   	<telerik:RadGridView x:Name="gridView" GroupRenderMode="Flag" AutoGenerateColumns="False">
   		<telerik:RadGridView.Columns>
   			<telerik:GridViewDataColumn DataMemberBinding="{Binding ID}"/>
   			<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" />
   			<telerik:GridViewDataColumn DataMemberBinding="{Binding Date}" />
   			<telerik:GridViewDataColumn DataMemberBinding="{Binding IsChecked}" />
   		</telerik:RadGridView.Columns>
   	</telerik:RadGridView>
   </Grid>
   ```

6. Run the project and you should see something like this:

   ![Main window with RadGridView](https://www.telerik.com/products/wpf/documentation/assets/b79eeb78e2d7d0e7d9f6ff3e6eeb3540/main-window-with-radgridview.png)
