Example #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _dlgView.Destroy();
                _dlgView.LayoutNative   = null;
                _dlgView.BindingContext = null;
                _dlgView.Parent         = null;
                _dlgView = null;

                _contentView.Touch -= _contentView_Touch;

                _container?.Dispose();
                _container = null;

                if (!_renderer.View.IsDisposed())
                {
                    _renderer.View.Dispose();
                }

                _contentView.Dispose();
                _contentView = null;

                _renderer.Dispose();
                _renderer = null;

                OnceInitializeAction = null;
            }
            base.Dispose(disposing);
        }
Example #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _dlgView.Destroy();
                _dlgView.BindingContext = null;
                _dlgView.Parent         = null;
                _dlgView = null;

                _contentView.Touch -= _contentView_Touch;
                _contentView.SetOnKeyListener(null);


                if (!_renderer.View.IsDisposed())
                {
                    _renderer.View.Dispose();
                }

                _contentView.Dispose();
                _contentView = null;

                _renderer.Dispose();
                _renderer = null;

                _extraDialog = null;

                OnceInitializeAction = null;
            }
            base.Dispose(disposing);
        }
        public virtual void Dispose()
        {
            ContentView.Dispose();
            ContentView = null;

            OnceInitializeAction = null;
            PlatformDialog       = null;
        }
 public void CleanUp()
 {
     _parent.RemoveView(_overlay);
     _overlay.Dispose();
 }
Example #5
0
 public void Dispose()
 {
     Platform.SetRenderer(page, null);
     pageRenderer.Dispose();
     pageContainer.Dispose();
 }