public void Dispose() { if (_parentViewStack != null) { _parentViewStack.ViewStackLoaded -= OnParentViewStackLoaded; } UnsubscribeLayoutUpdated(); }