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

5 posts, 0 answers
  1. Geoff
    Geoff avatar
    3 posts
    Member since:
    Jun 2012

    Posted 11 Jun 2012 Link to this post

    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).
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 14 Jun 2012 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Geoff
    Geoff avatar
    3 posts
    Member since:
    Jun 2012

    Posted 20 Jun 2012 Link to this post

    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
  5. Dani
    Admin
    Dani avatar
    848 posts

    Posted 21 Jun 2012 Link to this post

    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 >>
  6. Geoff
    Geoff avatar
    3 posts
    Member since:
    Jun 2012

    Posted 21 Jun 2012 Link to this post

    Worked perfect, thank you Dani!
Back to Top
UI for WPF is Visual Studio 2017 Ready