From 9014a94372afa6624eee714c550e0f9f7fe95b9e Mon Sep 17 00:00:00 2001 From: syneffort Date: Mon, 10 Jul 2023 16:45:00 +0900 Subject: [PATCH] Simple data bind --- .../App.config | 6 + .../App.xaml | 9 ++ .../App.xaml.cs | 17 +++ ...aBindByINotifyPropertyChangedSample.csproj | 99 +++++++++++++++ .../MainWindow.xaml | 55 ++++++++ .../MainWindow.xaml.cs | 44 +++++++ .../Model/User.cs | 46 +++++++ .../Properties/AssemblyInfo.cs | 55 ++++++++ .../Properties/Resources.Designer.cs | 71 +++++++++++ .../Properties/Resources.resx | 117 ++++++++++++++++++ .../Properties/Settings.Designer.cs | 30 +++++ .../Properties/Settings.settings | 7 ++ .../ViewModel/UserViewModel.cs | 18 +++ PacticeSolution/PacticeSolution.sln | 6 + .../SimpleDataBinding/MainWindow.xaml | 30 +++-- 15 files changed, 600 insertions(+), 10 deletions(-) create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/App.config create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/App.xaml create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/App.xaml.cs create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/DataBindByINotifyPropertyChangedSample.csproj create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/MainWindow.xaml create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/MainWindow.xaml.cs create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/Model/User.cs create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/Properties/AssemblyInfo.cs create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/Properties/Resources.Designer.cs create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/Properties/Resources.resx create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/Properties/Settings.Designer.cs create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/Properties/Settings.settings create mode 100644 PacticeSolution/DataBindByINotifyPropertyChangedSample/ViewModel/UserViewModel.cs diff --git a/PacticeSolution/DataBindByINotifyPropertyChangedSample/App.config b/PacticeSolution/DataBindByINotifyPropertyChangedSample/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/PacticeSolution/DataBindByINotifyPropertyChangedSample/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PacticeSolution/DataBindByINotifyPropertyChangedSample/App.xaml b/PacticeSolution/DataBindByINotifyPropertyChangedSample/App.xaml new file mode 100644 index 0000000..f0d477e --- /dev/null +++ b/PacticeSolution/DataBindByINotifyPropertyChangedSample/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/PacticeSolution/DataBindByINotifyPropertyChangedSample/App.xaml.cs b/PacticeSolution/DataBindByINotifyPropertyChangedSample/App.xaml.cs new file mode 100644 index 0000000..8f2d543 --- /dev/null +++ b/PacticeSolution/DataBindByINotifyPropertyChangedSample/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace DataBindByINotifyPropertyChangedSample +{ + /// + /// App.xaml에 대한 상호 작용 논리 + /// + public partial class App : Application + { + } +} diff --git a/PacticeSolution/DataBindByINotifyPropertyChangedSample/DataBindByINotifyPropertyChangedSample.csproj b/PacticeSolution/DataBindByINotifyPropertyChangedSample/DataBindByINotifyPropertyChangedSample.csproj new file mode 100644 index 0000000..9e48c82 --- /dev/null +++ b/PacticeSolution/DataBindByINotifyPropertyChangedSample/DataBindByINotifyPropertyChangedSample.csproj @@ -0,0 +1,99 @@ + + + + + Debug + AnyCPU + {8AC04681-4724-4F24-B24A-FE1140D2E6EA} + WinExe + DataBindByINotifyPropertyChangedSample + DataBindByINotifyPropertyChangedSample + v4.5 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + \ No newline at end of file diff --git a/PacticeSolution/DataBindByINotifyPropertyChangedSample/MainWindow.xaml b/PacticeSolution/DataBindByINotifyPropertyChangedSample/MainWindow.xaml new file mode 100644 index 0000000..8a9beb0 --- /dev/null +++ b/PacticeSolution/DataBindByINotifyPropertyChangedSample/MainWindow.xaml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +