Пример #1
0
        void IDisconnectable.Disconnect()
        {
            if (_shellSection != null)
            {
                ((IShellSectionController)_shellSection).RemoveContentInsetObserver(this);
                _shellSection = null;
            }

            if (Element != null)
            {
                Element.PropertyChanged -= OnHandlePropertyChanged;
                Platform.SetRenderer(Element, null);

                if (_appeared)
                {
                    Page.SendDisappearing();
                }

                Element = null;
            }

            _events?.Disconnect();
            _packager?.Disconnect();
            _tracker?.Disconnect();
        }