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

Telerik Namespace Schema Declaration

The following topic will show you how to manually declare a namespace in XAML.

Almost all Telerik controls can be found in the 'telerik' URI namespace schema (see Example 1). You can use only this namespace to access all controls from Telerik assemblies that you are referring in your application. You cannot access controls from assemblies that you are not referring.

There are few controls which are in another namespace schema. For example, such are RadPivotGrid and RadPivotFieldList and their namespace is: xmlns:pivot="http://schemas.telerik.com/2008/xaml/presentation/pivot".

  1. Open your WPF application with the Telerik assemblies referenced in it.

  2. Open the XAML file with the view where you want to add the Telerik controls.

  3. Go to the opening tag of the parent control (like the Window or UserControl) and type in the "telerik" namespace identifier. When you type the "equals" character in the drop down list select the 'http://schemas.telerik.com/2008/xaml/presentation' item.

    Telerik namespace definition

    Common Installing Namespace Declaration 1

    The result should be similar to this.

    Telerik namespace added in XAML

        <Window x:Class="WpfApplication1.MainWindow" 
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
                Title="MainWindow" Height="350" Width="525"> 
            <Grid> 
            </Grid> 
        </Window> 
    
  4. Now you can declare any controls, existing in the Telerik namespace, which are included in the assemblies added to the project.

    Using the Telerik namespace

        <Window x:Class="WpfApplication1.MainWindow" 
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
                Title="MainWindow" Height="350" Width="525"> 
            <Grid> 
                <telerik:RadTreeView/> 
            </Grid> 
        </Window> 
    

See the Telerik assemblies required by each control in the Controls Dependencies article.

See Also

In this article