Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 8cd4065

Browse files
For WPF, Use Cross-Platform Implementation for BaseCommand.IsMainThread and BaseCommand.BeginInvokeOnMainThread (#965)
* Add Non-WPF Support to .NET Core 3.1 * Update comments * Merge .NET Standard and WPF Functionality
1 parent f8db5a9 commit 8cd4065

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/CommunityToolkit/Xamarin.CommunityToolkit/ObjectModel/Internals/BaseCommand.netstandard.cs renamed to src/CommunityToolkit/Xamarin.CommunityToolkit/ObjectModel/Internals/BaseCommand.netstandard.wpf.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public abstract partial class BaseCommand<TCanExecute>
1313
static void BeginInvokeOnMainThread(Action action)
1414
{
1515
if (synchronizationContext != null && SynchronizationContext.Current != synchronizationContext)
16-
synchronizationContext.Post((o) => action(), null);
16+
synchronizationContext.Post(_ => action(), null);
1717
else
1818
action();
1919
}

src/CommunityToolkit/Xamarin.CommunityToolkit/ObjectModel/Internals/BaseCommand.wpf.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)