void AddLayoutListener()
        {
            _carouselViewLayoutListener              = new CarouselViewwOnGlobalLayoutListener();
            _carouselViewLayoutListener.LayoutReady += LayoutReady;

            ViewTreeObserver.AddOnGlobalLayoutListener(_carouselViewLayoutListener);
        }
        void ClearLayoutListener()
        {
            if (_carouselViewLayoutListener == null)
            {
                return;
            }

            ViewTreeObserver?.RemoveOnGlobalLayoutListener(_carouselViewLayoutListener);
            _carouselViewLayoutListener.LayoutReady -= LayoutReady;
            _carouselViewLayoutListener              = null;
        }
        void AddLayoutListener()
        {
            if (_carouselViewLayoutListener != null)
            {
                return;
            }

            _carouselViewLayoutListener              = new CarouselViewwOnGlobalLayoutListener();
            _carouselViewLayoutListener.LayoutReady += LayoutReady;

            ViewTreeObserver.AddOnGlobalLayoutListener(_carouselViewLayoutListener);
        }