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

"The property ... is not a Dependency Property" After Upgrading Assemblies

3 Answers 408 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nicholas
Top achievements
Rank 1
Nicholas asked on 08 Oct 2020, 01:02 PM

Hello,

I updated to the newest version of Telerik UI for WPF last Friday, and ever since I have been receiving this issue. Any control where I set a property for a GridView, or some GridView component, using a style, I now receive this error:

"The property 'CanUserSelectColumns' is not a DependencyProperty. To be used in markup, non-attached properties must be exposed on the target type with an accessible instance property 'CanUserSelectColumns'. For attached properties, the declaring type must provide static 'GetCanUserSelectColumns' and 'SetCanUserSelectColumns' methods."

This error occurs even when I set styles on GridViewCell, but not all GridView components. See attached images for example. The project still builds and runs correctly, but this prevents me from using the designer, and also adds a lot of noise to my errors list.

Please let me know if there is a solution.

Thanks

3 Answers, 1 is accepted

Sort by
0
Nicholas
Top achievements
Rank 1
answered on 08 Oct 2020, 07:12 PM

This issue seems to have spontaneously resolved itself today. I will update this thread if I have any further issues.

Thanks

0
Nicholas
Top achievements
Rank 1
answered on 08 Oct 2020, 07:52 PM
I apologize for the frequent posts, but the issue just spontaneously returned. I am now also receiving the error "The TypeConverter for 'GridViewLength' does not support converting from a string." on any GridView or GridView component that I have set a 'Width' or 'Height' on.
0
Vladimir Stoyanov
Telerik team
answered on 13 Oct 2020, 07:23 AM

Hello Nicholas,

Thank you for the shared picture. 

Can you try out the tips listed in the Resolving Design Time Errors article? Most often such errors are caused by some mix up of dlls or Visual Studio caching some old binaries. 

Do check out the shared article and let me know, if it helps. 

Regards,
Vladimir Stoyanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
GridView
Asked by
Nicholas
Top achievements
Rank 1
Answers by
Nicholas
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or