I have a DataGrid from the WPF Extended Toolkit with several columns similar to the following:
<xcdg:Column Title="Description" FieldName="Description" Visible="{Binding Source={x:Reference filterDescription}, Path=IsChecked, Converter={StaticResource FilterVisibility}}" />
The problem is that each of these columns shows a design time error of "Object Reference not set to an instance of an object" for the Visibility property. Intellisense sees the Visibility property just fine. Everything is functional so it doesn't really hurt anything however I'm up to 26 of these psuedo-errors and it sometimes makes finding real issues a pain.
Is there anyway to either make Visual Studio 2012 Shut up about these errors, or someway to convince the IDE that this property that it actually intellisense's is fine? Am I missing some special design time reference?
The prothe value for null. Anyway, the best way to solve this kind of problems is to attach Visual Studio to Visual Studio :) (I mean debugger).
Tools -> Attach To Process
then select XDescProc.exe
process.Debug -> Exceptions
and check the field right after Common Language Runtime Exceptions
in Thrown
columnReload designer
button on the first instance of VS.Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With