Getting exception when we drag & drop C1DockTabControl

Posted by: vinothkumar.ravi on 11 May 2021, 8:35 pm EST

  • Posted 11 May 2021, 8:35 pm EST

    Hi,

    I am getting below exception when I drag and drop C1DockTabControl.

    Please find the attached stack trace of exception.

    System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
    at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderVerticalLines(DrawingContext dc, VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)
    at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderCellBorders(DrawingContext dc)
    at Syncfusion.Windows.Controls.Grid.GridControlBase.RenderCellBorders(DrawingContext dc)
    at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderCellBorders()
    at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.OnRender(DrawingContext dc)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.ScrollContentPresenter.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
    at System.Windows.Controls.ScrollViewer.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
    at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
    at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
    at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
    at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
    at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at C1.WPF.C1LinePanel.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
    at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at C1.WPF.Docking.C1DockControlPanel.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.ContextLayoutManager.UpdateLayout()
    at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
    at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
    at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
    at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
    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.DispatcherOperation.InvokeImpl()
    at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Windows.Threading.DispatcherOperation.Invoke()
    at System.Windows.Threading.Dispatcher.ProcessQueue()
    at System.Windows.Threading.Dispatcher.WndProcHook(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.Window.ShowHelper(Object booleanBox)
    at System.Windows.Window.ShowDialog()

    Thanks and Regards,
    Vinoth Kumar Ravi
  • Marked as Answer

    Replied 12 May 2021, 12:02 am EST

    Hi Vinoth,

    Thank you for sharing the stack trace.

    As I can observe from the stack trace, this exception seems specific to Syncfusion's control. Could you please try drag/drop in DockingSamples product sample present at location Documents\ComponentOne Samples\WPF\v4.5.2\C1.WPF.Docking\CS and see if it shows the same error?

    In case if the product sample doesn't show any error then I would request you to share a stripped down sample replicating this behavior.

    Best Regards,
    Kartik
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels