From ac6cac3226530e6812ea35a7830f21124f621c6e Mon Sep 17 00:00:00 2001 From: VINAGHOST Date: Wed, 30 Jul 2025 02:25:50 +0700 Subject: [PATCH] net8.0 & CommunityToolkit.Mvvm --- WpfDemoApp/App.config | 6 - WpfDemoApp/App.xaml | 4 +- WpfDemoApp/InformationWindow.xaml | 9 -- WpfDemoApp/MainWindow.xaml | 53 --------- WpfDemoApp/MainWindow.xaml.cs | 107 ----------------- WpfDemoApp/ViewModels/MainWindowViewModel.cs | 110 ++++++++++++++++++ WpfDemoApp/Views/InformationWindow.xaml | 15 +++ .../{ => Views}/InformationWindow.xaml.cs | 9 +- WpfDemoApp/Views/MainWindow.xaml | 59 ++++++++++ WpfDemoApp/Views/MainWindow.xaml.cs | 14 +++ WpfDemoApp/WpfDemoApp.csproj | 11 +- 11 files changed, 208 insertions(+), 189 deletions(-) delete mode 100644 WpfDemoApp/App.config delete mode 100644 WpfDemoApp/InformationWindow.xaml delete mode 100644 WpfDemoApp/MainWindow.xaml delete mode 100644 WpfDemoApp/MainWindow.xaml.cs create mode 100644 WpfDemoApp/ViewModels/MainWindowViewModel.cs create mode 100644 WpfDemoApp/Views/InformationWindow.xaml rename WpfDemoApp/{ => Views}/InformationWindow.xaml.cs (66%) create mode 100644 WpfDemoApp/Views/MainWindow.xaml create mode 100644 WpfDemoApp/Views/MainWindow.xaml.cs diff --git a/WpfDemoApp/App.config b/WpfDemoApp/App.config deleted file mode 100644 index b50c74f..0000000 --- a/WpfDemoApp/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/WpfDemoApp/App.xaml b/WpfDemoApp/App.xaml index 63ff4ca..a786df8 100644 --- a/WpfDemoApp/App.xaml +++ b/WpfDemoApp/App.xaml @@ -1,5 +1,5 @@  - + StartupUri="Views/MainWindow.xaml"> + \ No newline at end of file diff --git a/WpfDemoApp/InformationWindow.xaml b/WpfDemoApp/InformationWindow.xaml deleted file mode 100644 index d0bc947..0000000 --- a/WpfDemoApp/InformationWindow.xaml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - diff --git a/WpfDemoApp/MainWindow.xaml b/WpfDemoApp/MainWindow.xaml deleted file mode 100644 index 28fe247..0000000 --- a/WpfDemoApp/MainWindow.xaml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -