NAmespaces problem

2 posts, 1 answers
  1. tomas
    tomas avatar
    139 posts
    Member since:
    Sep 2012

    Posted 18 Jun 2010 Link to this post

    Hello Telerik.

    I like your Silverlight controls, they are really great. I am true beginner, may be my question is stupid:

    When I drag any control from the toolbox, VS 2010 adds

    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

    namespace declaration. Not the clr-namespace x assembly form of namespace declaration which is often described in documentations Getting Started section.

    That does it mean?

    Thank you very much.

    Tom





  2. Answer
    Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 21 Jun 2010 Link to this post

    Hi tomas,

    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" is a URI namespace that maps to multiple CLR namespaces. So if you have Controls and Input assemblies that using this URI namespace you will see all controls from both assemblies.
    Using the old syntax is still supported but will limit you and you will have to add two namespaces to see controls from both assemblies.
    We did this change with Silverlight 4 (before that URI namespaces were not supported for custom controls).
    We will have to update our documentation.

    Best wishes,
    Hristo
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top