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

Telerik.Windows.Documents

2 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
fatys
Top achievements
Rank 1
fatys asked on 20 Mar 2014, 09:09 AM
When I update the telerik Dll "Telerik.Windows.Documents" I have this error in my Silverlight project :

Impossible to convert the Object type "System.Drawing.ColorConverter" in type " System.Windows.Data.IValueConverter"

This is the code xaml:
xmlns:drawing="clr-namespace:System.Drawing;assembly=Telerik.Windows.Documents"      
<drawing:ColorConverter x:Key="ColorConverter" />


Some one can help me !!

thanks you

2 Answers, 1 is accepted

Sort by
0
fatys
Top achievements
Rank 1
answered on 20 Mar 2014, 10:00 AM
<Path Fill="{Binding Converter={StaticResource ColorConverter}}"
             Width="12"
             Height="12">
                                                <Path.Data>
                                                    <Binding Path="ActualMarkerGeometry"
   RelativeSource="{RelativeSource AncestorType=tlk:LegendItemControl}">
                                                        <Binding.Converter>
                                                            <tlk:GeometryCloneConverter />
                                                        </Binding.Converter>
                                                    </Binding>
                                                </Path.Data>
                                            </Path>
0
Boby
Telerik team
answered on 25 Mar 2014, 08:42 AM
Hello fatys,
The exception is normal, as the System.Drawing.ColorConverter is TypeConverter and does not inherit from IValueConverter interface. I guess that the problem is not related to the upgrade of  Telerik.Windows.Documents assembly, as this code hasn't been changed recently.

Regards,
Boby
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
General Discussions
Asked by
fatys
Top achievements
Rank 1
Answers by
fatys
Top achievements
Rank 1
Boby
Telerik team
Share this question
or