Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/TableView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,16 @@ private void OnCollectionViewPropertyChanging(object? sender, PropertyChangingEv
/// <summary>
/// Handles the PropertyChanged event of the CollectionView.
/// </summary>
private async void OnCollectionViewPropertyChanged(object? sender, PropertyChangedEventArgs e)
private void OnCollectionViewPropertyChanged(object? sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == nameof(CollectionView.CollectionGroups))
{
_collectionView.CollectionGroups?.VectorChanged += OnCollectionViewGroupDescriptionsChanged;

// Detach and reattach so the ListView rebuilds its groups. Both in one go: yielding between them let a
// frame render the table empty, a visible flicker on every grouping change.
_shouldThrowBaseProeprtyChangedException = false;
base.ItemsSource = null;
await Task.Yield();
base.ItemsSource = _collectionView;
_shouldThrowBaseProeprtyChangedException = true;
}
Expand Down