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

"Ambiguous Reference" error when editing the default style of the RadScheduleView control

1 Answer 251 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Ramon Alejandro
Top achievements
Rank 2
Ramon Alejandro asked on 16 May 2014, 08:34 PM
I'm trying to make a custom appointment following this tutorial. I clone the style using Right Click -> Edit Template -> Edit a Copy. The resulting code has several  ambiguous reference error. I read that the solution is to use the fully qualified namespace but I don't know which option is correct.

One of the errors is in the line 
<Style TargetType="{x:Type telerik:DragVisual}">

but DragVisual is defined in both Telerik.Windows.Controls and Telerik.Windows.DragDrop. Which one should I use?

1 Answer, 1 is accepted

Sort by
0
Alek
Telerik team
answered on 20 May 2014, 10:58 AM
Hi Ramon,

You are experience this behavior as a consequence of the way how Blend extract the templates. It tries to match all used namespaces to the default one (xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" ). To have more clear view how to create a custom templates we recommend to get acquainted with the following articles: As per the the current case you should use this namespace - xmlns:telerikScheduleView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.ScheduleView" - for DragVisual.

Regards,
Alek
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ScheduleView
Asked by
Ramon Alejandro
Top achievements
Rank 2
Answers by
Alek
Telerik team
Share this question
or