Skip to content

Commit

Permalink
Merge pull request #183 from Mrxx99/feature/partialVM
Browse files Browse the repository at this point in the history
Make MainWindowViewModel partial when used with CommunityToolkit.Mvvm
  • Loading branch information
maxkatz6 authored Apr 8, 2023
2 parents e8cb951 + 9f73396 commit 8367868
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/csharp/app-mvvm/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
namespace AvaloniaAppTemplate.ViewModels;

#if (CommunityToolkitChosen)
public partial class MainWindowViewModel : ViewModelBase
#else
public class MainWindowViewModel : ViewModelBase
#endif
{
public string Greeting => "Welcome to Avalonia!";
}

0 comments on commit 8367868

Please sign in to comment.