UI.WPF.Modern icon indicating copy to clipboard operation
UI.WPF.Modern copied to clipboard

Layout measurement override of element ItemsRepeater should not return NaN values as its DesiredSize

Open Valkirie opened this issue 1 year ago • 2 comments

Similar to https://github.com/Kinnara/ModernWpf/issues/350, I get the above exception when I insert an item at index 0 to the collection that the ItemsRepeater is binded to.

Layout measurement override of element 'iNKORE.UI.WPF.Modern.Controls.ItemsRepeater' should not return NaN values as its DesiredSize.   at System.Windows.UIElement.Measure(Size availableSize)
   at iNKORE.UI.WPF.Controls.SimpleStackPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   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)

Valkirie avatar Jul 14 '24 10:07 Valkirie

Anyone has any ideas how to fix this?

NotYoojun avatar Aug 02 '24 10:08 NotYoojun

I'm afraid no.

Valkirie avatar Aug 02 '24 10:08 Valkirie

Too bad, no one has any ideas on how to fix this. If anyone's got a solution, please feel free to comment and I'll reopen!

NotYoojun avatar Feb 01 '25 09:02 NotYoojun