An error occurs setting zoomfactor

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

An error occurs setting zoomfactor

Post by vifani » Wed May 07, 2014 10:37 am

Hi All,

This morning I updated to version. 6.0.1.4002 of Arction Library.

I have a project where I set the ZoomFactor property like in this line of code: chart.ViewXY.ZoomPanOptions.ZoomFactor = 1;

After the update, the same line doesn't work anymore having this exception:

{"Cast specificato non valido."} => Invalid Cast

in Arction.WPF.LightningChartUltimate.Views.ViewXY.ZoomPanOptions.RQC(DependencyObject A, Object B)
in System.Windows.DependencyObject.ProcessCoerceValue(DependencyProperty dp, PropertyMetadata metadata, EntryIndex& entryIndex, Int32& targetIndex, EffectiveValueEntry& newEntry, EffectiveValueEntry& oldEntry, Object& oldValue, Object baseValue, Object controlValue, CoerceValueCallback coerceValueCallback, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, Boolean skipBaseValueChecks)
in System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
in System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
in System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
in Mermec.TrackWare.Modules.Summary.View.TWSummaryViewer.CreateSummaryChart(TWSurveyChartState surveyState) in d:\Diagnostic\Source\Trunk\ApplicationClients\Mermec.TrackWare\Mermec.TrackWare.Modules.Summary\View\TWSummaryViewer.xaml.cs:riga 413
in Mermec.TrackWare.Modules.Summary.View.TWSummaryViewer.<>c__DisplayClass3.<SurveyLoadedEvent>b__0(Task r) in d:\Diagnostic\Source\Trunk\ApplicationClients\Mermec.TrackWare\Mermec.TrackWare.Modules.Summary\View\TWSummaryViewer.xaml.cs:riga 132
in System.Threading.Tasks.Task.Execute()

thank you

Antonio Pinnelli

ArctionTero
Posts: 42
Joined: Thu Mar 28, 2013 9:20 am

Re: An error occurs setting zoomfactor

Post by ArctionTero » Wed May 07, 2014 11:07 am

Hi Antonio,

This is a bug in the chart and there is no workaround.
Fix will be included in the next release, which hopefully is released quite soon.
Sorry for inconvenience.
LightningChart Support Team, TK

vifani
Posts: 49
Joined: Thu May 02, 2013 8:35 am

Re: An error occurs setting zoomfactor

Post by vifani » Wed May 07, 2014 1:03 pm

Thank you very much for your quickly answer.

Antonio Pinnelli

Post Reply