Пример #1
0
        void UpdateFlyoutHeader()
        {
            var header = ((IShellController)_shellContext.Shell).FlyoutHeader;

            if (header == _headerView?.View)
            {
                return;
            }

            int previousIndex = GetPreviousIndex(_headerView);

            if (_headerView != null)
            {
                _tableViewController.HeaderView = null;
                _headerView.RemoveFromSuperview();
                _headerView.Dispose();
            }

            if (header != null)
            {
                _headerView = new UIContainerView(((IShellController)_shellContext.Shell).FlyoutHeader);
            }
            else
            {
                _headerView = null;
            }

            _uIViews[HeaderIndex] = _headerView;
            AddViewInCorrectOrder(_headerView, previousIndex);
            _tableViewController.HeaderView = _headerView;
        }
Пример #2
0
        void UpdateFlyoutHeader()
        {
            var header = ((IShellController)_shellContext.Shell).FlyoutHeader;

            if (header == _headerView?.View)
            {
                return;
            }

            if (_headerView != null)
            {
                _tableViewController.HeaderView = null;
                _headerView.RemoveFromSuperview();
                _headerView.Dispose();
            }

            if (header != null)
            {
                _headerView = new UIContainerView(((IShellController)_shellContext.Shell).FlyoutHeader);
            }
            else
            {
                _headerView = null;
            }

            _tableViewController.HeaderView = _headerView;

            if (_headerView != null)
            {
                View.AddSubview(_headerView);
            }
        }