dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

[CarouselView] Review if we need to use CarouselViewOnGlobalLayoutListener #18774

Open PureWeen opened 11 months ago

PureWeen commented 11 months ago

Description

GlobalLayoutListeners are generally very busy components that can cause some tricky side effects to manage. For example. https://github.com/dotnet/maui/pull/18771

GLLs will fire for any layout change that occurs anywhere on your screen. So, if you push a modal page the GLL will fire for all changes that are happening even though the CarouselView is covered. It can also be tricky to manage the lfiecycle of the GLL.

I'm curious if we can just use CarouselViewOnGlobalLayoutListener for the initial layout and initialize and then after that use a different mechanism for the rest of the behavior inside LayoutReady

ghost commented 11 months ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.