diff --git a/PacticeSolution/ObervableCollectionSample/App.xaml b/PacticeSolution/ObervableCollectionSample/App.xaml
new file mode 100644
index 0000000..e53ad33
--- /dev/null
+++ b/PacticeSolution/ObervableCollectionSample/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/PacticeSolution/ObervableCollectionSample/App.xaml.cs b/PacticeSolution/ObervableCollectionSample/App.xaml.cs
new file mode 100644
index 0000000..4a01fe8
--- /dev/null
+++ b/PacticeSolution/ObervableCollectionSample/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 ObervableCollectionSample
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/PacticeSolution/ObervableCollectionSample/AssemblyInfo.cs b/PacticeSolution/ObervableCollectionSample/AssemblyInfo.cs
new file mode 100644
index 0000000..8b5504e
--- /dev/null
+++ b/PacticeSolution/ObervableCollectionSample/AssemblyInfo.cs
@@ -0,0 +1,10 @@
+using System.Windows;
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
diff --git a/PacticeSolution/ObervableCollectionSample/MainWindow.xaml b/PacticeSolution/ObervableCollectionSample/MainWindow.xaml
new file mode 100644
index 0000000..fd47cfa
--- /dev/null
+++ b/PacticeSolution/ObervableCollectionSample/MainWindow.xaml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PacticeSolution/ObervableCollectionSample/MainWindow.xaml.cs b/PacticeSolution/ObervableCollectionSample/MainWindow.xaml.cs
new file mode 100644
index 0000000..01ed250
--- /dev/null
+++ b/PacticeSolution/ObervableCollectionSample/MainWindow.xaml.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace ObervableCollectionSample
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+
+ private void Button_Click(object sender, RoutedEventArgs e)
+ {
+ ObservableCollection context = this.DataContext as ObservableCollection;
+ if (context == null)
+ return;
+
+ context.Add(new Person("New person"));
+ }
+ }
+}
diff --git a/PacticeSolution/ObervableCollectionSample/ObervableCollectionSample.csproj b/PacticeSolution/ObervableCollectionSample/ObervableCollectionSample.csproj
new file mode 100644
index 0000000..4106cb0
--- /dev/null
+++ b/PacticeSolution/ObervableCollectionSample/ObervableCollectionSample.csproj
@@ -0,0 +1,10 @@
+
+
+
+ WinExe
+ net6.0-windows
+ enable
+ true
+
+
+
diff --git a/PacticeSolution/ObervableCollectionSample/Person.cs b/PacticeSolution/ObervableCollectionSample/Person.cs
new file mode 100644
index 0000000..ae80fa4
--- /dev/null
+++ b/PacticeSolution/ObervableCollectionSample/Person.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ObervableCollectionSample
+{
+ public class Person
+ {
+ public string Name { get; set; }
+
+ public Person(string name)
+ {
+ this.Name = name;
+ }
+ }
+}
diff --git a/PacticeSolution/ObervableCollectionSample/PersonCollection.cs b/PacticeSolution/ObervableCollectionSample/PersonCollection.cs
new file mode 100644
index 0000000..86948a4
--- /dev/null
+++ b/PacticeSolution/ObervableCollectionSample/PersonCollection.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ObervableCollectionSample
+{
+ public class PersonCollection : ObservableCollection
+ {
+ public PersonCollection()
+ {
+ InitInstance();
+ }
+
+ private void InitInstance()
+ {
+ this.Add(new Person("neymar"));
+ this.Add(new Person("messi"));
+ this.Add(new Person("ronaldo"));
+ this.Add(new Person("park"));
+ this.Add(new Person("sonny"));
+ }
+ }
+}
diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln
index 96f9496..8af917d 100644
--- a/PacticeSolution/PacticeSolution.sln
+++ b/PacticeSolution/PacticeSolution.sln
@@ -107,13 +107,15 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StaticResourceSample", "Sta
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HowToUseStyle", "HowToUseStyle\HowToUseStyle.csproj", "{6E182894-D2F1-4D2C-B991-51B01A2E3223}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ListViewEditSample", "ListViewEditSample\ListViewEditSample.csproj", "{87E66D9A-4E6C-43E8-B23A-AB2A2E9F67D5}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ListViewEditSample", "ListViewEditSample\ListViewEditSample.csproj", "{87E66D9A-4E6C-43E8-B23A-AB2A2E9F67D5}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DelegateEventFuncAction", "DelegateEventFuncAction\DelegateEventFuncAction.csproj", "{52E7C139-F78C-4947-BB09-58D4BFF72435}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DelegateEventFuncAction", "DelegateEventFuncAction\DelegateEventFuncAction.csproj", "{52E7C139-F78C-4947-BB09-58D4BFF72435}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassInitInXaml", "ClassInitInXaml\ClassInitInXaml.csproj", "{4D5438AC-CDD0-4975-8D0A-F1BBF49F4EE5}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClassInitInXaml", "ClassInitInXaml\ClassInitInXaml.csproj", "{4D5438AC-CDD0-4975-8D0A-F1BBF49F4EE5}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComboBoxSample", "ComboBoxSample\ComboBoxSample.csproj", "{0A10867D-797C-4477-A584-6CB72B1DE97A}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComboBoxSample", "ComboBoxSample\ComboBoxSample.csproj", "{0A10867D-797C-4477-A584-6CB72B1DE97A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ObervableCollectionSample", "ObervableCollectionSample\ObervableCollectionSample.csproj", "{0C2F6C56-5CAB-44BB-9890-7512C944CE1D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -345,6 +347,10 @@ Global
{0A10867D-797C-4477-A584-6CB72B1DE97A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0A10867D-797C-4477-A584-6CB72B1DE97A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0A10867D-797C-4477-A584-6CB72B1DE97A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0C2F6C56-5CAB-44BB-9890-7512C944CE1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0C2F6C56-5CAB-44BB-9890-7512C944CE1D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0C2F6C56-5CAB-44BB-9890-7512C944CE1D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0C2F6C56-5CAB-44BB-9890-7512C944CE1D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE