Ambiguous type reference for InvertedBooleanConverter

5 posts, 0 answers
  1. Kellie
    Kellie avatar
    29 posts
    Member since:
    Feb 2009

    Posted 19 Oct 2011 Link to this post

    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

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 24 Oct 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Rich Reuter
    Rich Reuter avatar
    14 posts
    Member since:
    Aug 2012

    Posted 18 Apr 2012 Link to this post

    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
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 19 Apr 2012 Link to this post

    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 >>
  6. Rich Reuter
    Rich Reuter avatar
    14 posts
    Member since:
    Aug 2012

    Posted 19 Apr 2012 Link to this post

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