Esempio n. 1
0
        void IDisposable.Dispose()
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true;

            Page.DescendantRemoved -= HandleChildRemoved;
            MessagingCenter.Unsubscribe <Page, ActionSheetArguments>(this, Page.ActionSheetSignalName);
            MessagingCenter.Unsubscribe <Page, AlertArguments>(this, Page.AlertSignalName);
            MessagingCenter.Unsubscribe <Page, bool>(this, Page.BusySetSignalName);

            DisposeModelAndChildrenRenderers(Page);
            PlatformRenderer.Dispose();
        }
Esempio n. 2
0
        void IDisposable.Dispose()
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true;

            Page.DescendantRemoved -= HandleChildRemoved;
            MessagingCenter.Unsubscribe <Page, ActionSheetArguments>(this, Page.ActionSheetSignalName);
            MessagingCenter.Unsubscribe <Page, AlertArguments>(this, Page.AlertSignalName);
            MessagingCenter.Unsubscribe <Page, bool>(this, Page.BusySetSignalName);

            Page.DisposeModalAndChildRenderers();
            //foreach (var modal in _modals)
            //modal.DisposeModalAndChildRenderers();
            _renderer.Dispose();
        }