Jump to content
Software FX Community

MaxSize of PaneCollection?


ltang

Recommended Posts

 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 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...