Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Valkirie opened this issue Jul 14, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Valkirie
Copy link
Contributor

Similar to Kinnara/ModernWpf#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)
@NotYoojun NotYoojun added bug Something isn't working help wanted Extra attention is needed labels Jul 14, 2024
@NotYoojun
Copy link
Member

Anyone has any ideas how to fix this?

@Valkirie
Copy link
Contributor Author

Valkirie commented Aug 2, 2024

I'm afraid no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants