The following topic describes what steps you should perform in order to install Telerik UI for WPF from a NuGet package.
We’re providing a common NuGet package containing all the assemblies from the UI for WPF suite as well as separate packages for the different assemblies. It is up to you to decide which one is more suitable for your project.
The provided NuGet packages contain either NoXaml binaries or XAML binaries. Check the Setting a Theme (Using Implicit Styles) help topic for more details on the NoXaml binaries and Implicit Styles.
We will go through the following sections:
Go to to the UI for WPF download page following the instructions in Download Product Files topic.
Download the needed NuGet .zip file depending on whether you're using Xaml or NoXaml binaries and extract it into the folder where your Telerik NuGet packages are located.
The next steps show how to install the complete NuGet package which includes all the assemblies.The approach is the same for the separate packages.
Once you open the “Manage NuGet Packages” dialog in Visual Studio (right-click Project References -> Manage NuGet Packages), you can select the Telerik NuGet folder and the available packages there will be shown:
If you haven’t set the Telerik NuGet folder until now, you can do it by clicking Settings button on the “Manage NuGet Packages” dialog, then add the folder where you’ve extracted the .nupkg file (for example C://Telerik NuGet) as a new package source inside the Options dialog:
Click the “Install” button and the references will be automatically added to your project as shown below:
You can now use the Telerik WPF controls in your project.
Additionally, you can create a private NuGet Feed and deploy the Telerik NuGet packages there - for more details refer to this blog post.
Since R1 2019, .NET Core 3 UI for WPF NuGet Packages are also available.
You can install and test the Latest Internal Build (LIB) dlls provided on a weekly basis, via the Nuget Package Manager. You can see how to set up the nugets in a local nuget source (package source) in the Installing WPF Controls Package section of this article.
The LIB nugets are available only as .nupkg files that can be downloaded from your telerik.com account. This means that you will need to create a local package source and copy the files there. You cannot download LIB dlls via the online telerik nuget server (https://nuget.telerik.com/nuget) because they are not available there.
When you set up the package source and place the nuget files there, you can find them in the Nuget Package Manager. To see the LIB packages you will need also to check the Include prerelease option. The LIB packages have the -hotfix postfix in the version field.
Through the Telerik NuGet Server users can easily include the Telerik UI for WPF suite and update to latest official version without having to log into their Telerik account. The following steps will demonstrate how this can be done in Visual Studio:
1.Navigate to the Package Manager Settings menu.
2.Add new source in the Package Sources section.
3.In the Source field fill the address of the Telerik NuGet Server and click Update.
4.The Telerik Server is added and ready to use. Click on the Manage NuGet Packages menu.
5.Set the Telerik Server as a package source. Enter user credentials when prompted and search for the needed package.
Using this approach you can only use versions from 2016.3.1024 and later. If you need to use a previous version of the suite you will need to create a local package source.