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); }
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(); }
public void Dispose() { Platform.SetRenderer(page, null); pageRenderer.Dispose(); pageContainer.Dispose(); }