ltang Posted June 25, 2008 Report Share Posted June 25, 2008 Hi, I got this exception when adding 20 series to the chart and then set chart.AllSeries.MultiplePanes = true; "System.ArgumentException: Width and Height must be non-negative.\r\n at System.Windows.Rect..ctor(Double x, Double y, Double width, Double height)\r\n at ChartFX.WPF.Controls.PanePanel.ArrangeOverride(Size finalSize)\r\n at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)\r\n at System.Windows.UIElement.Arrange(Rect finalRect)\r\n at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)\r\n at System.Windows.Controls.ItemsPresenter.ArrangeOverride(Size arrangeSize)\r\n at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)\r\n at System.Windows.UIElement.Arrange(Rect finalRect)\r\n at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)\r\n at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)\r\n at System.Windows.UIElement.Arrange(Rect finalRect)\r\n at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)\r\n at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)\r\n at System.Windows.UIElement.Arrange(Rect finalRect)\r\n at ChartFX.WPF.Controls.SpacingDockPanel.ArrangeOverride(Size finalSize)\r\n at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)\r\n at System.Windows.UIElement.Arrange(Rect finalRect)\r\n at System.Windows.ContextLayoutManager.UpdateLayout()\r\n at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)\r\n at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()\r\n at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()\r\n at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)\r\n at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)\r\n at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)\r\n at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)" string Quote Link to comment Share on other sites More sharing options...
JuanC Posted June 26, 2008 Report Share Posted June 26, 2008 There is no max size for the pane collection, you are hitting a bug because there is probably not a lot of vertical space to display 20 series. We will fix this bug but obviously if you keep adding series, there will be a point where you run out of space. We have other ways to layout the panes so that you can have multiple columns or vertical scrollbars. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.