Open Xiaoy312 opened 3 weeks ago
To me, I think we should fix it in MoveNext:
As this enumerator is intended to enumerate UIElement
s, it should keep moving while current is not UIElement.
Something like:
while (_inner.MoveNext())
{
if (_inner.Current is UIElement) break;
}
i did a null filter in both arrange and measure it works. the grid renders 'n all but there are still warnings from ios:
// same messages repeated 6times
SamplesApp[98188:1921608] [Unknown process name] Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Please fix this problem.
SamplesApp[98188:1921608] [Unknown process name] If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.
filtering in UIEleCol seems like a better idea, but i think we might need also take care of situation where the non-UIElement is in the middle of list(due to for-loop + indexer), and adjust stuff like .Count/.Length too
it is actually a messy situation, it is not just the UIEleCol.Etor.MoveNext that needs to be updated but most accessors like Count, Indexer[int].get from UIEleCol, and potentially mutators like add,insert,remove,etc that need to be updated to ignore the imposter in the source collection
@ajpinedam this may be a related reason for your issue.
Current behavior
Expected behavior
^ no crash
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
press and hold, then slowly drag horizontally along the textbox presumably, this prevent the "autocorrekt" suggestion from showing up, which caused this bug
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
recent master
Affected platforms
iOS
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response