From 6b9268d2d88c81c18f2cc21e343d321989dad99c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 9 Jan 2026 21:30:49 +0800 Subject: Set up project structure and CLI integration --- JVDesktop/ViewModels/DashboardViewModel.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 JVDesktop/ViewModels/DashboardViewModel.cs (limited to 'JVDesktop/ViewModels/DashboardViewModel.cs') diff --git a/JVDesktop/ViewModels/DashboardViewModel.cs b/JVDesktop/ViewModels/DashboardViewModel.cs new file mode 100644 index 0000000..5ae7d95 --- /dev/null +++ b/JVDesktop/ViewModels/DashboardViewModel.cs @@ -0,0 +1,15 @@ +using System; +using CommunityToolkit.Mvvm.Input; + +namespace JVDesktop.ViewModels; + +public partial class DashboardViewModel : ViewModel +{ + public string Greeting => "Welcome to Avalonia!"; + + [RelayCommand] + private void ButtonClick() + { + Console.WriteLine("Button clicked"); + } +} -- cgit