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

The type or namespace name 'External' does not exist...

4 Answers 751 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Geoff
Top achievements
Rank 1
Geoff asked on 11 Jun 2012, 02:44 PM
I'm getting error: "The type or namespace name 'External' does not exist in the namespace 'Telerik.Windows.Controls'(are you missing an assembly reference?)"

This error is in my MainWindow.g.cs file. It occurred when I added "Telerik.Windows.Controls.ScheduleView.xaml" (OfficeBlue) to my project. Whenever I get this error I can "clean solution" and run and it works. But if I make a change to anything in my project and try to run it, it errors. I tried finding this class reference in the ScheduleView documentation and no luck. If I delete the "using Telerik.Windows.Controls.External;" out of my code I get a bunch of errors. So I assume there has to be some reference that the project is finding.

Any help would be much appreciated.

(This is using the trial version with Blend 4, Windows 7 service pack 1).

4 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 14 Jun 2012, 07:03 AM
Hi Geoff,

I could not reproduce the exception. I tested with a simple project with 2012 Q2 WPF assemblies and merged all needed Office Blue xaml in the project.

Did you copy xaml from Themes.Implicit folder or from somewhere else? The external namespace should be present only in xaml which is not implicit-style-friendly, i.e. xaml used by the Telerik StyleManager.

You can try deleting the external namespace from the xaml files. If you still get errors, please share a reproducable project, this  will be helpful.

Regards,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Geoff
Top achievements
Rank 1
answered on 20 Jun 2012, 07:33 PM
Alright this is in Q1. Maybe I should upgrade?

This is where I got the file from:

C:\Program Files\Telerik\RadControls for WPF Q1 2012 SP1\Themes\WPF40\OfficeBlue\Themes\Telerik.Windows.Controls.ScheduleView
0
Dani
Telerik team
answered on 21 Jun 2012, 11:31 AM
Hi Geoff,

The 2012 Q1 version does not distribute the implicit styles in a separate folder. So what you have copied from the Themes folder needs to be modified before you can merge it and safely use it in your project.

Please, try replacing the <external:Office_BlueThemeExternal x:Key="Theme" /> with <telerik:Office_BlueTheme x:Key="Theme" /> at all occurences in your copied resource dictionary.

Also delete the external namespace declaration as you do not need it:
xmlns:external="clr-namespace:Telerik.Windows.Controls.External"

Upgrading will help in that it will provide you with ready-to-use xaml files with implicit stylingHere you can find more information on the implicit styles we introduced. 

However, if you have made significant changes to your current xaml you do not necessarily need to upgrade just now.

Hope this helps.

Regards,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Geoff
Top achievements
Rank 1
answered on 21 Jun 2012, 01:40 PM
Worked perfect, thank you Dani!
Tags
ScheduleView
Asked by
Geoff
Top achievements
Rank 1
Answers by
Dani
Telerik team
Geoff
Top achievements
Rank 1
Share this question
or