Exemplo n.º 1
0
        public ShellTableViewController(IShellContext context, UIContainerView headerView, Action <Element> onElementSelected)
        {
            _context               = context;
            _onElementSelected     = onElementSelected;
            _headerView            = headerView;
            _source                = CreateShellTableViewSource();
            _source.ScrolledEvent += OnScrolled;

            if (_headerView != null)
            {
                _headerView.HeaderSizeChanged += OnHeaderSizeChanged;
            }

            ShellController.StructureChanged += OnStructureChanged;
            _context.Shell.PropertyChanged   += OnShellPropertyChanged;
        }
Exemplo n.º 2
0
        public ShellFlyoutContentRenderer(IShellContext context)
        {
            _shellContext = context;

            var header = ((IShellController)context.Shell).FlyoutHeader;

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

            _tableViewController = CreateShellTableViewController();

            AddChildViewController(_tableViewController);

            context.Shell.PropertyChanged += HandleShellPropertyChanged;
        }