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

Need Better Exception

1 Answer 40 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 17 Jan 2017, 03:08 PM

When using a property grid, I have a DataTemplateSelector for properties that require my custom control to edit.  Upon initializing my control, I need a view model set, so I use AutoBindBehavior.UpdateBindingOnElementLoaded for that purpose.  Several times I have renamed a convenience setter for a property in my view model without renaming the corresponding dependency property, thus I was violating convention but nothing else.  Each time I did that, I would get a null reference exception.  I spent many hours trying to figure out what I did wrong.

I would be SOOO helpful if the exception in this case said "unable to find dependency property X"  I would've know exactly what I did wrong...

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 18 Jan 2017, 05:23 PM
Hi,

Thank you for sharing this feedback. The suggested change looks like a minor, but very helpful change. We will do our best to include it in some of our future releases. 

Regards,
Ivan Ivanov
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
PropertyGrid
Asked by
Brad
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or