Пример #1
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);

            _tableViewObserver = _tableView.AddObserver("contentSize", NSKeyValueObservingOptions.New, x =>
            {
                //It's the only way that work for fixed RowHeight or UITableView.AutomaticDimension
                _tableViewHeightFluentLayout.Constant = _tableView.ContentSize.Height;
            });
        }
Пример #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);
        }