protected virtual void Dispose(bool flag) { if (_disposed) { return; } _disposed = true; Disposing?.Invoke(); if (flag) { _styleHelper = null; _classHelper = null; ChildContent = null; WindowEventHub = null; ElementInfo = null; WindowInfo = null; Navigator = null; } }