First Steps with Telerik UI for WPF
This guide helps you create a Windows Presentation Foundation (WPF) project and display a RadTabControl.
Prerequisites
Before you start:
- Use Windows and Visual Studio with the .NET desktop development workload. Check the Telerik UI for WPF system requirements for supported environments.
- Install the .NET 8.0 Software Development Kit (SDK) for this tutorial.
- Have a Telerik account with a commercial or trial license valid for the package version you install.
Set Up Telerik Development Environment
If you have already set up your Telerik development environment and it doesn't need updating, skip to create the WPF project.
To configure your development environment with the Telerik command-line interface (CLI), run these commands in PowerShell:
-
Install Telerik CLI. If it is already installed, update it with
dotnet tool update -g Telerik.CLIinstead.powershelldotnet tool install -g Telerik.CLI -
Run the
telerik setup wpfcommand and follow the authentication prompts.powershelltelerik setup wpf
The setup command signs you in, downloads your license key, and configures the Telerik NuGet source. It also registers the Model Context Protocol (MCP) server configuration. Successful setup displays Telerik UI for WPF setup complete! Your environment is configured and ready.
For Q3 2026 and later packages, NuGet.org requires no Telerik feed configuration or authentication. You can use manual license key installation instead of CLI setup.
Create the WPF Project
To create a new WPF project in Visual Studio:
- Select File > New > Project.
- Select the WPF Application template.
- Enter the project name and location, select .NET 8.0 as the target framework, and click Create.
Install Telerik Packages in the Project
Starting with Q3 2026, Telerik UI for WPF NuGet packages are available on NuGet.org. No Telerik feed configuration or authentication is required for this source.
For earlier versions, use the Telerik NuGet server or a local package source.
The
Telerik.UI.for.Wpf.AllControls.Xamlpackage contains all Telerik WPF control assemblies. To reference only the controls you need, use the separate Telerik UI for WPF NuGet packages. This example requiresTelerik.Windows.Controls.Navigation.for.Wpf.XamlandTelerik.Licensing.
To install the packages in your WPF application project:
-
Right-click the project name in Visual Studio and select Manage NuGet Packages.
-
Open the Browse tab.
-
In the Package source dropdown, select nuget.org for Q3 2026 and later releases.
-
Search for
Telerik.UI.for.Wpf.AllControls.Xaml, select a release version, and install it in the project.Visual Studio adds a
PackageReferencewith the selected version to your project file. Keep that version rather than replacing it with the floating version*. -
Search for
Telerik.Licensingand install it in the same application project.
NuGet-based projects require both the
Telerik.Licensingpackage and a license key, even when packages come from NuGet.org. CLI setup downloads the key but does not replace the package requirement. See license key installation for details.
Add Telerik Controls in the Project
To add a RadTabControl to the WPF application:
-
Open the
MainWindow.xamlfile. -
Add this namespace declaration to the existing
Windowopening tag inMainWindow.xaml. This Extensible Application Markup Language (XAML) attribute fragment maps thetelerikprefix to the controls:xamlxmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" -
Replace the empty
GridinMainWindow.xamlwith this fragment. Keep the existingWindow, including its generatedx:Classand namespace declarations. These must match your project's code-behind:xaml<Grid> <telerik:RadTabControl> <telerik:RadTabItem Header="Home" /> <telerik:RadTabItem Header="Insert" /> <telerik:RadTabItem Header="View" /> </telerik:RadTabControl> </Grid> -
Optionally, set the theme with
StyleManager. This tutorial uses Xaml assemblies, which support this approach. To apply Windows11 to the control, add this attribute fragment to the existingtelerik:RadTabControlopening tag:xamltelerik:StyleManager.Theme="Windows11" -
Build and run the project. Verify that the window displays the Home, Insert, and View tab headers. The tab content is empty because this example sets only headers.
Telerik UI for WPF provides Xaml and NoXaml assemblies. Use Xaml assemblies for this tutorial and do not mix the two sets. See the Xaml and NoXaml comparison for their different theme requirements.
If package installation fails, check the selected version and package source configuration. If the build reports license errors or the application displays a watermark, check the license activation errors and solutions.
Next Steps
- Get AI-powered development help with Telerik AI tools
- Explore the available Telerik UI for WPF components
- Browse the Telerik UI for WPF desktop demos
- Explore the Telerik WPF Data Grid and its features
- Choose a Telerik UI for WPF theme