namespace MimicCreation
{
public class TreeManager : INotifyPropertyChanged
{
public TreeManager() { }
public TreeManager(string title, string type, string filename)
{
this.childElementsValue.CollectionChanged += this.OnCollectionChanged;
Title = title;
Type = type;
FileName = filename;
}
public string Title { get; set; }
public string Type { get; set; }
public string FileName { get; set; }
public override string ToString()
{
return Title;
}
private ObservableCollection<TreeManager> childElementsValue = new ObservableCollection<TreeManager>();
public ObservableCollection<TreeManager> ChildElements
{
get { return childElementsValue; }
set { childElementsValue = value; }
}
public void OnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
switch (e.Action)
{
case NotifyCollectionChangedAction.Add:
foreach (TreeManager item in e.NewItems)
{
((System.ComponentModel.INotifyPropertyChanged)item).PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(OnPropertyChanged);
}
break;
}
}
public void OnPropertyChanged(object sender, PropertyChangedEventArgs e)
{
}
}
}
를 인터페이스 멤버를 구현하는 'System.ComponentModel.INotifyPropertyChanged.PropertyChanged'하지 않는다 : 오류 'MimicCreation.TreeManager'는 인터페이스 멤버를 구현하는 컴파일에 'System.ComponentModel.INotifyPropertyChanged.PropertyChanged'하지 않습니다. 관찰 가능한 컬렉션의 각 항목이 변경 될 때 알림에 액세스 할 수있게하려는 관찰 가능한 컬렉션이 있는데, 내가 잘못한 것을 볼 수 없습니다. 어떤 아이디어라도 제발?나는 다음과 같은 오류를 얻고있다
감사합니다.