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(); }
void IDisconnectable.Disconnect() { if (_shellSection != null) { ((IShellSectionController)_shellSection).RemoveContentInsetObserver(this); _shellSection = null; } if (Element != null) { Element.PropertyChanged -= OnHandlePropertyChanged; Platform.SetRenderer(Element, null); Element = null; } (_pageLifecycleManager as IDisconnectable)?.Disconnect(); _events?.Disconnect(); _packager?.Disconnect(); _tracker?.Disconnect(); }