This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi I'm using build 20080822 of the WPF propertygrid. I have the following code Xaml<window x:class="PropertyGridSample.Window1" C#namespace PropertyGridSample { This shows a PropertyGrid with a single property "BirthDay", when I click the dropdown in the "DatePicker" the a NullReferenceException is thrown with stack trace found below. Do I need to add something to prevent the datepicker to work, or is this a bug the in the build? System.Windows.Data Error: 8 : Cannot save value from target back to source. BindingExpression:Path=IsDropDownOpen; DataItem='DropDown' (Name=''); target element is 'DropDownToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1') XamlParseException:'System.Windows.Markup.XamlParseException: Cannot find type 'Mindscape.WpfPropertyGrid.DayTemplateSelector'. The assembly used when compiling might be different than that used when loading and the type is missing. Error in markup file 'Mindscape.WpfPropertyGrid;component/Themes/Calendar.Generic.xaml'. ---> System.ApplicationException: Cannot find type 'Mindscape.WpfPropertyGrid.DayTemplateSelector'. The assembly used when compiling might be different than that used when loading and the type is missing. |
|
|
This was a bug resulting from an overenthusiastic obfuscator. I have now fixed it and the fix will be available in builds numbered 20080827 and above, available after about 1800 GMT. In the meantime, the bug only manifests if you have a DateTime in January 0001 or December 9999. So you can get around it by specifying a BirthDay value that is not in either of those two months. We would generally advise using a more appropriate default for DateTime properties than DateTime.MinValue anyway. Apologies for the inconvenience and thanks for reporting the problem. |
|