After adding a HeaderPosition property to ListViewSettings.CellSettings:
<my:Calendar.ListViewSettings>
<my:ListViewSettings>
<my:ListViewSettings.CellSettings>
<my:CellSettings HeaderPosition="Bottom" />
</my:ListViewSettings.CellSettings>
</my:ListViewSettings>
</my:Calendar.ListViewSettings>
I get:
System.Windows.Markup.XamlParseException occurred
Message="Cannot convert string 'Bottom' in attribute 'HeaderPosition' to object of type 'System.Nullable`1[[MindFusion.Scheduling.Wpf.Position, MindFusion.Scheduling.Wpf, Version=2.0.0.20315, Culture=neutral, PublicKeyToken=d12631580350466b]]'. Bottom is not a valid value for Nullable`1. Error at object 'MindFusion.Scheduling.Wpf.CellSettings' in markup file 'Tutorial1;component/window1.xaml' Line 23 Position 24."
Source="PresentationFramework"
LineNumber=23
LinePosition=24
NameContext="CellSettings"
StackTrace:
at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
at System.Windows.Markup.XamlTypeMapper.ParseProperty(Object targetObject, Type propType, String propName, Object dpOrPiOrFi, ITypeDescriptorContext typeContext, ParserContext parserContext, String value, Int16 converterTypeId)
at System.Windows.Markup.BamlRecordReader.ParseProperty(Object element, Type propertyType, String propertyName, Object dpOrPi, String attribValue, Int16 converterTypeId)
at System.Windows.Markup.BamlRecordReader.ReadPropertyRecordBase(String attribValue, Int16 attributeId, Int16 converterTypeId)
at System.Windows.Markup.BamlRecordReader.ReadPropertyConverterRecord(BamlPropertyWithConverterRecord bamlPropertyRecord)
at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
at System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()
at System.Windows.Markup.TreeBuilder.Parse()
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at MindFusion.Scheduling.Wpf.Samples.CS.Tutorial1.Window1.InitializeComponent() in c:\Program Files (x86)\MindFusion\MindFusion.Scheduling for WPF (Trial Version)\VS2008 (.NET 3.0)\Samples\C#\Tutorials\Tutorial1\Window1.xaml:line 1
at MindFusion.Scheduling.Wpf.Samples.CS.Tutorial1.Window1..ctor() in C:\Program Files (x86)\MindFusion\MindFusion.Scheduling for WPF (Trial Version)\VS2008 (.NET 3.0)\Samples\C#\Tutorials\Tutorial1\Window1.xaml.cs:line 22
InnerException: System.FormatException
Message="Bottom is not a valid value for Nullable`1."
Source="System"
StackTrace:
at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at System.ComponentModel.TypeConverter.ConvertFromString(ITypeDescriptorContext context, CultureInfo culture, String text)
at System.Windows.Markup.XamlTypeMapper.ParseProperty(Object targetObject, Type propType, String propName, Object dpOrPiOrFi, ITypeDescriptorContext typeContext, ParserContext parserContext, String value, Int16 converterTypeId)
InnerException: System.ArgumentException
Message="Type provided must be an Enum.\r\nParameter name: enumType"
Source="mscorlib"
ParamName="enumType"
StackTrace:
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
InnerException:
And I have similar problems with projects using Visual Studio 2010: There all Theme="Vista" assignments in xaml get a similar exception about Nullables (I don't see nullables anywhere).
Is this some sort of obfuscation problem?