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 |
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"
.
-
Open your WPF application with the Telerik assemblies referenced in it.
-
Open the XAML file with the view where you want to add the Telerik controls.
-
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.{{region installation-adding-application-namespace-declaration-0}} {{endregion}}
-
Now you can declare any controls, existing in the Telerik namespace, which are included in the assemblies added to the project.
{{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.
- [Upgrading Telerik UI Trial to Telerik UI Developer License]({%slug installation-upgrading-from-trial-to-developer-license-wpf%})