I am getting this exception when I try to serialize an object. The object has properties of type Brush, Stroke and SimpleFont.
I use the XamlWrite.Save( myobject ) method to save the object.
I am not using any EnumConverter in my class.
The Stroke class has one enum named NinjaTrader.Gui.DashStyleHelper. Maybe the bug is there.
Thanks.
handlerDialogSettings_btnSave_Click Now=11:22:36
Constructor on type 'NinjaTrader.Core.CoreEnumConverter' not found.
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at System.Xaml.TypeConverterHelper.GetTypeConverter(T ype type)
at System.Windows.Markup.ValueSerializer.GetSerialize rFor(Type type)
at System.Windows.Markup.ValueSerializer.GetSerialize rFor(PropertyDescriptor descriptor)
at System.Windows.Markup.Primitives.ElementPropertyBa se.GetValueSerializer()
at System.Windows.Markup.Primitives.ElementPropertyBa se.CanConvertToString(Object value)
at System.Windows.Markup.Primitives.ElementProperty.g et_Value()
at System.Windows.Markup.Primitives.ElementPropertyBa se.get_IsComposite()
at System.Windows.Markup.Primitives.MarkupWriter.Reco rdNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, Boolean lastWasString)
at System.Windows.Markup.Primitives.MarkupWriter.Reco rdNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, Boolean lastWasString)
at System.Windows.Markup.Primitives.MarkupWriter.Reco rdNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, Boolean lastWasString)
at System.Windows.Markup.Primitives.MarkupWriter.Writ eItem(MarkupObject item)
at System.Windows.Markup.Primitives.MarkupWriter.Save AsXml(XmlWriter writer, MarkupObject item)
at System.Windows.Markup.XamlWriter.Save(Object obj)
at NinjaTrader.NinjaScript.AddOns.SupperiaOutputWindo w.handlerDialogSettings_btnSave_Click(Object sender, RoutedEventArgs e) in c:\Users\ROMAN\Documents\NinjaTrader 8\bin\Custom\AddOns\SupperiaOutput.cs:line 488
Comment