taublast / DrawnUi.Maui

UI Rendering Engine for .NET MAUI powered by SkiaSharp
MIT License
217 stars 15 forks source link

Removing SkiaLayout's Children with Clear doesn't work #107

Open arifu-dev opened 2 hours ago

arifu-dev commented 2 hours ago

layout.Children.Clear(); does not remove any child views, removing them individually with layout.Children.RemoveAt(i); works as expected.

taublast commented 2 hours ago

Please use layout.Views.Clear(). Those are for high level access.

arifu-dev commented 1 hour ago

layout.Views.Clear() Does not work either, the views remain visible. However they do disappear if I resize the window, I assume that forces all the views to be fully invalidated.