void UpdateCarouselContent()
 {
     _innerContainer.UnPackAll();
     foreach (var page in Element.Children)
     {
         var nativeView = Xamarin.Forms.Platform.Tizen.Platform.GetRenderer(page).NativeView;
         _innerContainer.PackEnd(nativeView);
     }
     _pageIndex        = Element.Children.IndexOf(Element.CurrentPage);
     _isUpdateCarousel = true;
     _scroller.ScrollTo(_pageIndex, 0, false);
     Element.UpdateFocusTreePolicy();
 }
示例#2
0
 void UpdateCarouselContent()
 {
     _innerContainer.UnPackAll();
     foreach (var page in Element.Children)
     {
         var nativeView = Xamarin.Forms.Platform.Tizen.Platform.GetRenderer(page).NativeView;
         _innerContainer.PackEnd(nativeView);
         // if possible, make the subpage focusable, this ensures that there is something
         // to focus on all pages and prevents the scroller from auto-scrolling to focused widget
         (nativeView as ElmSharp.Widget)?.AllowFocus(true);
     }
     _pageIndex = Element.Children.IndexOf(Element.CurrentPage);
     _scroller.ScrollTo(_pageIndex, 0, false);
 }
示例#3
0
        void UpdateCarouselContent()
        {
            _innerContainer.UnPackAll();
            _layoutBound = new ESize(0, 0);
            foreach (var page in Element.Children)
            {
                var nativeView = Platform.GetOrCreateRenderer(page).NativeView;
                _innerContainer.PackEnd(nativeView);
            }
            _pageIndex = Element.Children.IndexOf(Element.CurrentPage);

            _isUpdateCarousel = true;
            _scroller.ScrollTo(_pageIndex, 0, false);
            Element.UpdateFocusTreePolicy();
            _isUpdateCarousel = false;
        }