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

Ambiguous type reference for InvertedBooleanConverter

4 Answers 294 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Kellie
Top achievements
Rank 1
Kellie asked on 19 Oct 2011, 04:44 PM

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

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 24 Oct 2011, 07:45 AM
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 >>

0
Rich Reuter
Top achievements
Rank 1
answered on 18 Apr 2012, 07:34 PM
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
0
Konstantina
Telerik team
answered on 19 Apr 2012, 12:37 PM
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 >>
0
Rich Reuter
Top achievements
Rank 1
answered on 19 Apr 2012, 02:33 PM
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
Tags
Menu
Asked by
Kellie
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Rich Reuter
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or