observable collection

This commit is contained in:
2023-08-02 18:00:28 +09:00
parent 5ceff2083d
commit 72ebcd8353
9 changed files with 163 additions and 4 deletions

View File

@@ -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<Person>
{
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"));
}
}
}