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

2 posts, 0 answers
  1. Ramon Alejandro
    Ramon Alejandro avatar
    2 posts
    Member since:
    Dec 2013

    Posted 16 May 2014 Link to this post

    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?
  2. Alek
    Admin
    Alek avatar
    78 posts

    Posted 20 May 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top