This is a migrated thread and some comments may be shown as answers.
Ambigious reference between telerik.windows.controls map and telerik.windows.controls
1 Answer 11 Views
This is a migrated thread and some comments may be shown as answers.
Gilbert van Veen
Top achievements
Rank 1
Gilbert van Veen asked on 29 Jun 2015, 08:27 AM

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.

 

 

1 Answer, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 30 Jun 2015, 09:07 AM
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
Asked by
Gilbert van Veen
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Share this question
or