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

Convertes defined in telerik assembly can not be found, break visual studio designer

2 Answers 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 29 Nov 2012, 11:23 AM
Hi,

I am trying to create a cutom look for the RadGridView to suit our application theme. The templates are based on telerik default templates where you have used some converters:
FilterOperatorConverter,FilterCompositionLogicalOperatorConverter,DistinctValueConverter etc..
No matter how I declare them in a resource dictionary I get errors:
<UserControl x:Class="WPFClient.Views.RequestSubmitView"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"          
   xmlns:grid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView,Version=2012.3.1017.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7"
   >
<telerik:FilterOperatorConverter x:Key="FilterOperatorConverter1"/>
<grid:FilterOperatorConverter x:Key="FilterOperatorConverter2" />
 
</ResourceDictionary>

The first decleration prompts the error:
Ambiguous type reference. A type named 'FilterOperatorConverter' occurs in at least two namespaces, 'Telerik.Windows.Controls.GridView' and 'Telerik.Windows.Data'. Consider adjusting the assembly XmlnsDefinition attributes. C:\dev\trunk\WPFClient\Views\RequestSubmitView.xaml 1 1 WPFClient

The second decleration prompts the error:
The name "FilterOperatorConverter" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView,Version=2012.3.1017.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7". C:\dev\trunk\WPFClient\Views\RequestSubmitView.xaml 90 13 WPFClient

There are a few odd things about this bug.
1)At runtime everything works fine. The problem is limited to design time and the visual studio designer does not work because of this.
2)I've tried this out in an external test application and the second decleration  work fine. It only happens in our project. It is not originally a .net 4 application but was upgraded from 3.5.

Thanks,

Gary


2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 29 Nov 2012, 01:53 PM
Hi Gary,

 Please use the URI namespace (telerik) instead to avoid such problems. 

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Gary
Top achievements
Rank 1
answered on 29 Nov 2012, 04:16 PM
I did use the URI namespace. This leads prompts the ambigous type error.
Eventually I solved this by using the namespace decleration:
xmlns:grid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"

Instead of the specific version and culture.
Tags
GridView
Asked by
Gary
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Gary
Top achievements
Rank 1
Share this question
or