protected override void OnAppearing()
        {
            base.OnAppearing();

            // attach our effect
            var lvsEffect = new ScrollReporterEffect();

            MyListView.Effects.Add(lvsEffect);
            lvsEffect.ScrollChanged += LvsEffect_ScrollChanged;
        }
Ejemplo n.º 2
0
        protected override void OnAttached()
        {
            if (Element is ListView == false)
            {
                return;
            }

            // find our effect
            effect = (RoutingEffects.ScrollReporterEffect)Element.Effects.FirstOrDefault(e => e is RoutingEffects.ScrollReporterEffect);

            // implement our effect
            nativeControl   = ((UITableView)Control);
            _offsetObserver = nativeControl.AddObserver("contentOffset", NSKeyValueObservingOptions.New, HandleAction);
        }