protected override void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    ItemsSource?.Dispose();
                }

                _disposed = true;

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

                _disposed = true;

                base.Dispose(disposing);
            }
        }