protected override void Dispose(bool disposing) { if (!_disposed) { if (disposing) { ItemsSource?.Dispose(); } _disposed = true; base.Dispose(disposing); } }
protected override void Dispose(bool disposing) { if (!_disposed) { if (disposing) { ItemsSource?.Dispose(); ItemsView.PropertyChanged -= ItemsViewPropertyChanged; } _disposed = true; base.Dispose(disposing); } }