コード例 #1
0
            protected override void Dispose(bool disposing)
            {
                if (disposing && !_disposed)
                {
                    _disposed = true;
                    RemoveAllViews();
                    if (_renderer != null)
                    {
                        _renderer.Dispose();
                        _renderer = null;
                        _modal.ClearValue(Android.Platform.RendererProperty);
                        _modal = null;
                    }

                    if (_backgroundView != null)
                    {
                        _backgroundView.Dispose();
                        _backgroundView = null;
                    }
                }

                base.Dispose(disposing);
            }