Exemplo n.º 1
0
        void UpdateCurrentShellContent(ShellContent content)
        {
            _currentContent?.Hide();

            if (content == null)
            {
                _currentContent = null;
                return;
            }

            Native.Page native = null;
            if (_contentToPage.ContainsKey(content))
            {
                native = _contentToPage[content];
            }
            else
            {
                native = CreateShellContent(content);
                Control.PackEnd(native);
                _contentToPage.Add(content, native);
            }
            _currentContent = native;
            _currentContent.Show();
            return;
        }