Sorry if this is a simplistic question, silverlight newbie here, but is their a way to get compile time errors when using a datacontext? Or a best practice to catch typos?
Say when you misspell a bindable property like:
<DataTemplate> <TextBlock Text="{Binding FirstNam}" /> </DataTemplate>
This was a big issue for me when I found that a property reference was case sensitive and I was getting no error. Speaking of which is there an event to catch when a binding error occurs at runtime too? Cuz no error got thrown and the page went blank when I had the property case wrong. (Took way to long to find out the problem.)
Thanks in advance.
Adam
Hello Adam,
No, the compiler will not detect Binding errors/typos in design time or when the project is built. It would catch and warn you for them when you run the application in debug mode. The errors will be displayed in the Output window.