Skip to content

Commit

Permalink
Added ViewModel template
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianSuess committed Aug 26, 2024
1 parent 60b2ce5 commit 6eee27d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
26 changes: 26 additions & 0 deletions templates/csharp/viewmodel/.template.config/template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Damian Suess",
"classifications": [ "Desktop", "Xaml", "Axaml", "Avalonia", "Prism", "Windows", "Linux", "macOS" ],
"defaultName": "ViewModel",
"description": "A Prism ViewModel",
"groupidentity": "Prism.Avalonia.ViewModel",
"identity": "Prism.Avalonia.ViewModel",
"name": "Prism Avalonia ViewModel",
"primaryOutputs": [
{ "path": "ViewModel.cs" }
],
"shortName": "prism.avalonia.viewmodel",
"sourceName": "ViewModel",
"symbols": {
"namespace": {
"description": "Namespace for the generated code",
"replaces": "SampleApp.ViewModels",
"type": "parameter"
}
},
"tags": {
"language": "C#",
"type": "item"
}
}
8 changes: 8 additions & 0 deletions templates/csharp/viewmodel/NewViewModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using Prism.Mvvm;

namespace PrismAvaloniaTemplate.ViewModels;

public class NewViewModel : BindableBase
{

}

0 comments on commit 6eee27d

Please sign in to comment.