Ambigious reference between telerik.windows.controls map and telerik.windows.controls

2 posts, 0 answers
  1. Gilbert van Veen
    Gilbert van Veen avatar
    68 posts
    Member since:
    Oct 2009

    Posted 29 Jun 2015 Link to this post

    I have added the RadMap control to one of my forms.

    Now I have an ambigious reference error on the categorycollection. I am using the ScheduleView in another form.

     Example:

    <telerik:CategoryCollection x:Key="DefaultCategoryCollection">
    <telerik:Category CategoryBrush="{StaticResource RedCategoryBrush}" CategoryName="Red Category" />
    <telerik:Category CategoryBrush="{StaticResource GreenCategoryBrush}" CategoryName="Green Category" />
    <telerik:Category CategoryBrush="{StaticResource BlueCategoryBrush}" CategoryName="Blue Category" />
    <telerik:Category CategoryBrush="{StaticResource PurpleCategoryBrush}" CategoryName="Purple Category" />
    <telerik:Category CategoryBrush="{StaticResource YellowCategoryBrush}" CategoryName="Yellow Category" />
    <telerik:Category CategoryBrush="{StaticResource OliveCategoryBrush}" CategoryName="Olive Category" />
    <telerik:Category CategoryBrush="{StaticResource PinkCategoryBrush}" CategoryName="Pink Category" />
    <telerik:Category CategoryBrush="{StaticResource OrangeCategoryBrush}" CategoryName="Orange Category" />
    </telerik:CategoryCollection>

     Wich xmlns namespace should I Add/specify in the XAML definition to tell the app to use the appropriate namespace for the scheduler control.

     Now I have:

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

     This worked fine until I added the RadMap.

     

     

  2. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 30 Jun 2015 Link to this post

    Hello,

    I suggest you use the Telerik.Windows.Controls namespace from ScheduleView assembly instead the Telerik schema:

    example:

    xmlns:scheduleView ="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView"
     
    <scheduleView :CategoryCollection x:Key="DefaultCategoryCollection">

    Hope this helps

    Regards,
    Rosi
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top