InvalidOperationException: 正在產生內容時,無法呼叫 StartAt。 StackTrace: 於 System.Windows.Controls.ItemContainerGenerator.GenerateBatches() 於 System.Windows.Controls.VirtualizingStackPanel.MeasureOverrideImpl(Size constraint, Nullable`1& lastPageSafeOffset, List`1& previouslyMeasuredOffsets, Nullable`1& lastPagePixelSize, Boolean remeasure) 於 System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) 於 System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) 於 System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) 於 System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 HandyControl.Controls.SimplePanel.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Controls.Border.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Controls.Control.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) 於 System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) 於 System.Windows.Controls.Grid.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Controls.Border.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Controls.Control.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) 於 System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) 於 System.Windows.Controls.Grid.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) 於 System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Controls.Grid.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Controls.Border.MeasureOverride(Size constraint) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Window.MeasureOverrideHelper(Size constraint) 於 System.Windows.Window.MeasureOverride(Size availableSize) 於 System.Windows.FrameworkElement.MeasureCore(Size availableSize) 於 System.Windows.UIElement.Measure(Size availableSize) 於 System.Windows.Interop.HwndSource.Process_WM_SIZE(UIElement rootUIElement, IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam) 於 System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 於 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 於 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 於 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 於 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)