Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > Ambiguous type reference for InvertedBooleanConverter

Not answered Ambiguous type reference for InvertedBooleanConverter

Feed from this thread
  • Posted on Oct 19, 2011 (permalink)

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

    The InvertedCooleanConverter has the following error:

    Error 710 Ambiguous type reference. A type named 'InvertedBooleanConverter' occurs in at least two namespaces, 'Telerik.Windows.Controls' and 'Telerik.Windows.Controls.Docking'. Consider adjusting the assembly XmlnsDefinition attributes.

    <telerik:RadMenuItem.IsChecked>
        <Binding Path="IsPinned">
            <Binding.Converter> 
                <telerik:InvertedBooleanConverter/>
            </Binding.Converter>
        </Binding>
    </telerik:RadMenuItem.IsChecked>

    How to fix?

    Thanks,
    Kellie

    Reply

  • Valeri Hristov Valeri Hristov admin's avatar

    Posted on Oct 24, 2011 (permalink)

    Hello Kellie,

    To workaround the problem you should use the full XML namespace for this converter (the other elements should be OK with the URI namespace):

    xmlns:telerikConverter="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

    <telerik:RadMenuItem.IsChecked> 
         <Binding Path="IsPinned"> 
             <Binding.Converter> 
                 <telerikConverter:InvertedBooleanConverter/> 
             </Binding.Converter> 
         </Binding>
    < /telerik:RadMenuItem.IsChecked>

    Greetings,
    Valeri Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Posted on Apr 18, 2012 (permalink)

    Are there plans to fix this?  I have an where there is a conflict with this class in code and using Reference aliases (along with the extern alias directives) don't seem to work. The conflict is in Telerik.Windows.Controls and Telerik.Windows.Controls.ScheduleView.
    Thanks,
    Rich

    SL 5, version 2012.1.215.1050

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Apr 19, 2012 (permalink)

    Hi Rich,

    This issue will be fixed for the upcoming official release. The Converter is already marked obsolete in the ScheduleView assembly. You could test this using one of the latest internal builds.

    All the best,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

  • Posted on Apr 19, 2012 (permalink)

    Thanks for the prompt reply. What I ended up doing to work around that issue was get the source for the latest release and create a new class with a different name. Great to know that I'll be able to remove that after the next release.
    Thanks,
    Rich

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > Ambiguous type reference for InvertedBooleanConverter