Skip to content

Commit 6b3a4e9

Browse files
committed
Switched to CommunityToolkit.Mvvm
Docs need updating still, but this will make things simpler with MAUI integration going forwards as the package reference will already be the right one
1 parent b3d64ad commit 6b3a4e9

9 files changed

+20
-20
lines changed

samples/MvvmSample.Core/MvvmSample.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</Content>
4646
</ItemGroup>
4747
<ItemGroup>
48-
<PackageReference Include="Microsoft.Toolkit.Mvvm" Version="7.0.0" />
48+
<PackageReference Include="CommunityToolkit.Mvvm" Version="7.0.3" />
4949
<PackageReference Include="Nito.AsyncEx.Coordination" Version="5.1.0" />
5050
<PackageReference Include="Refit" Version="6.0.38" />
5151
</ItemGroup>

samples/MvvmSample.Core/ViewModels/AsyncRelayCommandPageViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System.Threading.Tasks;
6-
using Microsoft.Toolkit.Mvvm.Input;
6+
using CommunityToolkit.Mvvm.Input;
77

88
namespace MvvmSample.Core.ViewModels
99
{

samples/MvvmSample.Core/ViewModels/MessengerPageViewModel.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Microsoft.Toolkit.Mvvm.ComponentModel;
6-
using Microsoft.Toolkit.Mvvm.Input;
7-
using Microsoft.Toolkit.Mvvm.Messaging;
8-
using Microsoft.Toolkit.Mvvm.Messaging.Messages;
95
using System.Windows.Input;
6+
using CommunityToolkit.Mvvm.ComponentModel;
7+
using CommunityToolkit.Mvvm.Input;
8+
using CommunityToolkit.Mvvm.Messaging;
9+
using CommunityToolkit.Mvvm.Messaging.Messages;
1010

1111
namespace MvvmSample.Core.ViewModels
1212
{
@@ -21,9 +21,9 @@ public MessengerPageViewModel()
2121
public ICommand RequestCurrentUsernameCommand { get; }
2222
public ICommand ResetCurrentUsernameCommand { get; }
2323

24-
public UserSenderViewModel SenderViewModel { get; } = new UserSenderViewModel();
24+
public UserSenderViewModel SenderViewModel { get; } = new();
2525

26-
public UserReceiverViewModel ReceiverViewModel { get; } = new UserReceiverViewModel();
26+
public UserReceiverViewModel ReceiverViewModel { get; } = new();
2727

2828
// Simple viewmodel for a module sending a username message
2929
public class UserSenderViewModel : ObservableRecipient

samples/MvvmSample.Core/ViewModels/ObservableObjectPageViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Microsoft.Toolkit.Mvvm.Input;
65
using System.Threading.Tasks;
76
using System.Windows.Input;
7+
using CommunityToolkit.Mvvm.Input;
88

99
namespace MvvmSample.Core.ViewModels
1010
{

samples/MvvmSample.Core/ViewModels/RelayCommandPageViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System.Windows.Input;
6-
using Microsoft.Toolkit.Mvvm.Input;
6+
using CommunityToolkit.Mvvm.Input;
77

88
namespace MvvmSample.Core.ViewModels
99
{

samples/MvvmSample.Core/ViewModels/SamplePageViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
using System.Collections.Generic;
66
using System.IO;
77
using System.Threading.Tasks;
8-
using Microsoft.Toolkit.Mvvm.ComponentModel;
9-
using Microsoft.Toolkit.Mvvm.DependencyInjection;
10-
using Microsoft.Toolkit.Mvvm.Input;
8+
using CommunityToolkit.Mvvm.ComponentModel;
9+
using CommunityToolkit.Mvvm.DependencyInjection;
10+
using CommunityToolkit.Mvvm.Input;
1111
using MvvmSample.Core.Helpers;
1212
using MvvmSample.Core.Services;
1313

samples/MvvmSample.Core/ViewModels/Widgets/PostWidgetViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Microsoft.Toolkit.Mvvm.ComponentModel;
6-
using Microsoft.Toolkit.Mvvm.Messaging;
7-
using Microsoft.Toolkit.Mvvm.Messaging.Messages;
5+
using CommunityToolkit.Mvvm.ComponentModel;
6+
using CommunityToolkit.Mvvm.Messaging;
7+
using CommunityToolkit.Mvvm.Messaging.Messages;
88
using MvvmSample.Core.Models;
99

1010
namespace MvvmSample.Core.ViewModels.Widgets

samples/MvvmSample.Core/ViewModels/Widgets/SubredditWidgetViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
using System.Collections.Generic;
66
using System.Collections.ObjectModel;
77
using System.Threading.Tasks;
8-
using Microsoft.Toolkit.Mvvm.ComponentModel;
9-
using Microsoft.Toolkit.Mvvm.DependencyInjection;
10-
using Microsoft.Toolkit.Mvvm.Input;
8+
using CommunityToolkit.Mvvm.ComponentModel;
9+
using CommunityToolkit.Mvvm.DependencyInjection;
10+
using CommunityToolkit.Mvvm.Input;
1111
using MvvmSample.Core.Models;
1212
using MvvmSample.Core.Services;
1313
using Nito.AsyncEx;

samples/MvvmSampleUwp/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
using Windows.ApplicationModel.Activation;
66
using Windows.ApplicationModel.Core;
77
using Windows.UI.Xaml;
8+
using CommunityToolkit.Mvvm.DependencyInjection;
89
using Microsoft.Extensions.DependencyInjection;
9-
using Microsoft.Toolkit.Mvvm.DependencyInjection;
1010
using MvvmSampleUwp.Services;
1111
using Refit;
1212
using MvvmSampleUwp.Helpers;

0 commit comments

Comments
 (0)