Current filter:
                                You should refresh the page.
                                  • I am getting the following exception:

                                    System.Exception
                                      HResult=0x80131500
                                      Message=Inner exception is occurred.
                                      Source=DevExpress.Xpf.Charts.v18.2
                                      StackTrace:
                                       at DevExpress.Xpf.Charts.XYDiagram2D.InViewport(Point position, Pane pane)
                                       at DevExpress.Xpf.Charts.XYDiagram2D.NavigationInDiagram(Point chartPosition)
                                       at DevExpress.Xpf.Charts.Native.NavigationController.GetKeyboardCursor(Boolean useFocusedPane)
                                       at DevExpress.Xpf.Charts.Native.NavigationController.UpdateCursor(Point cursorPosition)
                                       at DevExpress.Xpf.Charts.Native.NavigationController.MouseMove(Object sender, MouseEventArgs e)
                                       at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
                                       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
                                       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
                                       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
                                       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
                                       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
                                       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
                                       at System.Windows.Input.InputManager.ProcessStagingArea()
                                       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
                                       at System.Windows.Input.MouseDevice.Synchronize()
                                       at System.Windows.Input.MouseDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)
                                       at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
                                       at System.Windows.Input.InputManager.ProcessStagingArea()
                                       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
                                       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
                                       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
                                       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
                                       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
                                       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
                                       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
                                       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
                                       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
                                       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
                                       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
                                       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
                                       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
                                       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
                                       at System.Windows.Application.RunDispatcher(Object ignore)
                                       at System.Windows.Application.RunInternal(Window window)
                                       at System.Windows.Application.Run(Window window)
                                       at System.Windows.Application.Run()
                                       at Arup.FlowDataVisualiser.App.Main()

                                    Inner Exception 1:
                                    InvalidOperationException: The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals.

                                    It occurs when I update the chart view model which the chart is bound to - i.e. recreate it and assign the property and call OnPropertyChanged of the INotifyPropertyChanged interface

                                    I have a property SelectedChart which returns a view model and the ChartControl is bound to various properties of that view model

                                    [XAML]
                                    <dxc:ChartControl x:Name="Chart" AutoLayout="False" CrosshairEnabled="True"> <dxc:ChartControl.Legends> <dxc:Legend VerticalPosition="BottomOutside" HorizontalPosition="Center" Orientation="Horizontal" MarkerMode="CheckBox" /> </dxc:ChartControl.Legends> <dxc:ChartControl.CrosshairOptions> <dxc:CrosshairOptions ShowOnlyInFocusedPane="False" CrosshairLabelMode="ShowForEachSeries" HighlightPoints="False" ContentShowMode="Legend" /> </dxc:ChartControl.CrosshairOptions> <dxc:XYDiagram2D Name="Diagram" EnableAxisXNavigation="True" Zoom="XYDiagram2D_OnZoom" Scroll="XYDiagram2D_OnScroll" PaneItemsSource="{Binding SelectedChart.Panes}" SeriesItemsSource="{Binding SelectedChart.Series}" SecondaryAxisYItemsSource="{Binding SelectedChart.YAxes}"> <dxc:XYDiagram2D.Resources> <DataTemplate DataType="{x:Type viewModel:BarSeriesViewModel}"> <dxc:BarSideBySideSeries2D DataSource="{Binding Data}" ValueDataMember="Value" ArgumentDataMember="TimeStamp" ValueScaleType="Numerical" ArgumentScaleType="DateTime" Brush="{Binding Brush}" Pane="{Binding Pane}" DisplayName="{Binding Name}" AxisY="{Binding YAxis}" BarWidth="1" /> </DataTemplate> <DataTemplate DataType="{x:Type viewModel:LineSeriesViewModel}"> <dxc:LineSeries2D DataSource="{Binding Data}" ArgumentDataMember="TimeStamp" ValueDataMember="Value" Pane="{Binding Pane}" AxisY="{Binding YAxis}" DisplayName="{Binding Name}" ValueScaleType="Numerical" ArgumentScaleType="DateTime" Brush="{Binding Brush}"> <dxc:LineSeries2D.LineStyle> <dxc:LineStyle LineJoin="Miter" Thickness="1" /> </dxc:LineSeries2D.LineStyle> </dxc:LineSeries2D> </DataTemplate> </dxc:XYDiagram2D.Resources> <dxc:XYDiagram2D.NavigationOptions> <dxc:NavigationOptions UseScrollBars="True" UseMouse="False" AxisXMaxZoomPercent="10000000" /> </dxc:XYDiagram2D.NavigationOptions> <dxc:XYDiagram2D.AxisX> <dxc:AxisX2D StickToEdge="True" VisibilityInPaneItemsSource="{Binding SelectedChart.Panes}" GridLinesVisible="True" GridLinesMinorVisible="True"> <dxc:AxisX2D.DateTimeScaleOptions> <dxc:AutomaticDateTimeScaleOptions AggregateFunction="Average"> <dxc:AutomaticDateTimeScaleOptions.AutomaticMeasureUnitsCalculator> <flowDataVisualiser:DateTimeScaleUnitsCalculator /> </dxc:AutomaticDateTimeScaleOptions.AutomaticMeasureUnitsCalculator> </dxc:AutomaticDateTimeScaleOptions> </dxc:AxisX2D.DateTimeScaleOptions> <dxc:AxisX2D.VisibilityInPaneItemTemplate> <DataTemplate> <dxc:VisibilityInPane Pane="{Binding}" Visible="{Binding AxisXVisible}" /> </DataTemplate> </dxc:AxisX2D.VisibilityInPaneItemTemplate> </dxc:AxisX2D> </dxc:XYDiagram2D.AxisX> <dxc:XYDiagram2D.AxisY> <dxc:AxisY2D Visible="False" GridLinesVisible="False" GridLinesMinorVisible="False" Interlaced="False" /> </dxc:XYDiagram2D.AxisY> <dxc:XYDiagram2D.DefaultPane> <dxc:Pane Visibility="Collapsed" /> </dxc:XYDiagram2D.DefaultPane> <dxc:XYDiagram2D.PaneItemTemplate> <DataTemplate> <dxc:Pane> <dxc:Pane.AxisXScrollBarOptions> <dxc:ScrollBarOptions Visible="{Binding AxisXVisible}" /> </dxc:Pane.AxisXScrollBarOptions> </dxc:Pane> </DataTemplate> </dxc:XYDiagram2D.PaneItemTemplate> <dxc:XYDiagram2D.SecondaryAxisYItemTemplate> <DataTemplate> <dxc:SecondaryAxisY2D Alignment="Near" Reverse="{Binding IsYReversed}" GridLinesVisible="True" GridLinesMinorVisible="True"> <dxc:SecondaryAxisY2D.WholeRange> <dxc:Range dxc:AxisY2D.AlwaysShowZeroLevel="False" /> </dxc:SecondaryAxisY2D.WholeRange> <dxc:SecondaryAxisY2D.Title> <dxc:AxisTitle Content="{Binding Title}" /> </dxc:SecondaryAxisY2D.Title> </dxc:SecondaryAxisY2D> </DataTemplate> </dxc:XYDiagram2D.SecondaryAxisYItemTemplate> </dxc:XYDiagram2D> </dxc:ChartControl>
                                • Alex (DevExpress Support) 06.07.2019

                                  Hi,

                                  Although we have received a similar error report in an older version of DevExpress assemblies, I am unable to reproduce this error locally. It would be helpful if you provide your view model definition or a complete example to illustrate the issue. We will test it locally and will check for a permanent solution. If necessary, you can mark this ticket as private.

                                • Timbo 06.07.2019

                                  I've made private and attached a stripped down version of my project.

                                  WHen you load you should get a chart with a date range and all values as zero.  If you then left click the chart, drag to select an area (2 lines will appear), it will then zoom in to the area selected.

                                  Then click New session and "No" on the do you want to save dialog, the exception is then raised.

                                  Its something to do with the lines I'm adding to an overlay canvas but I can't really work out what.

                                • Alex (DevExpress Support) 06.10.2019

                                  Hi,

                                  I have reproduced this issue locally and forwarded it to our R&D team. We will continue working on a solution and will notify you once we have any results.

                                1 Solution

                                Creation Date Importance Sort by
                                Show all comments
                                • DevExpress Support Team 06.12.2019

                                  We have published the requested patched build and are looking forward to hearing about your results. Meanwhile, we would like to mark this ticket as Public, if you do not mind, to include it in the What's New lists for future maintenance updates.

                                • Timbo 06.12.2019

                                  yes you can make it public. 

                                • Timbo 06.12.2019

                                  i have tried to install the hot fix but I got a report at the end of the installation with an error message saying that every installation had failed.

                                • Alex (DevExpress Support) 06.12.2019

                                  Hi,

                                  Try to completely uninstall v19.1 from your machine and then install the hotfix build. If this does not help, upload the installation log file for further examination (it should be located in the C:\Program Files (x86)\DevExpress 19.1\Components folder). We will check for possible causes of this issue.

                                • Timbo 06.13.2019

                                  thanks that now worked.  It also appears to have fixed the bug above so all is good.  Thanks

                                • Alex (DevExpress Support) 06.13.2019

                                  Thank you for your confirmation. It is good news that the problem has been resolved.