This is a migrated thread and some comments may be shown as answers.

Namespaces - telerik vs. telerik1

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Veteran
Don asked on 21 Nov 2020, 01:08 AM

I am using implicit styles with UI for WPF. To customize some of the controls I have been copying styles and/or templates from the styles in the Telerik UI for WPF R3 2020\Themes.Implicit\WPF40\Fluent\Themes folder. This has been working fine but I am curious about the namespaces.

The styles I am copying make reference to a namespace called telerik1. After copying the style I initially was adding the telerik1 namespace to my custom style xaml file. That worked fine. More recently, instead of adding the namespace, I have been doing a search/replace to replace all occurrences of "telerik1" with "telerik". This also works fine.

I prefer just replacing "telerik1" with "telerik" and not adding the namespace. Are there any issues or downsides with that approach?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vicky
Telerik team
answered on 23 Nov 2020, 02:32 PM

Hello Don,

Both methods regarding the Telerik namespaces which you described are fine.

The telerik1 namespace comes from the XAML output mechanism of the XAML Preprocessor that our controls use. It is basically responsible for making sure that there are no duplicates. If replacing telerik1 with telerik is more convenient for you, go for it. It should not lead to any issues or downsides.

I remain at your disposal in case any other questions arise.

Regards,
Vicky
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Don
Top achievements
Rank 1
Veteran
Answers by
Vicky
Telerik team
Share this question
or