Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 2.69 KB

telerik-namespace-declaration.md

File metadata and controls

56 lines (44 loc) · 2.69 KB
title page_title description slug tags published position site_name
Telerik Namespace Declaration
Telerik Namespace Declaration
The following topic will show you how to manually declare a Telerik WPF schema in XAML.
installation-adding-application-namespace-declaration
namespace,declaration
true
13
WPF

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. 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.

    [XAML] Telerik namespace added in XAML

    {{region installation-adding-application-namespace-declaration-0}} {{endregion}}

  4. Now you can declare any controls, existing in the Telerik namespace, which are included in the assemblies added to the project.

    [XAML] Using the Telerik namespace

    {{region installation-adding-application-namespace-declaration-1}} telerik:RadTreeView/ {{endregion}}

tip See the Telerik assemblies required by each control in the [Controls Dependencies]({%slug installation-installing-controls-dependencies-wpf%}) article.

See Also

  • [Upgrading Telerik UI Trial to Telerik UI Developer License]({%slug installation-upgrading-from-trial-to-developer-license-wpf%})