Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterjanDeClippel committed Dec 30, 2024
1 parent 7876dfd commit 67eede8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<IsPackable>true</IsPackable>
<PackageId>MintPlayer.ObservableCollection</PackageId>
<Version>9.3.0</Version>
<Version>9.3.1</Version>
<Description>
Extended version of System.Collections.ObjectModel.ObservableCollection. This class allows you to:
1) Use AddRange, invoking the CollectionChanged event only once
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
var isCollectionView = IsCollectionView(handler.Target);
if (isCollectionView)
{
var methods = handler.Target.GetType().GetMethods(BindingFlags.Public | BindingFlags.NonPublic);

// Call the Refresh method if the target is a WPF CollectionView
RunOnMainThread(
(param) => handler.Target!.GetType().GetMethod("Refresh")!.Invoke(param.target, []),
Expand Down

0 comments on commit 67eede8

Please sign in to comment.