c#中关于在xaml页面即时回显属性值

//属性回显
protected void OnPropertyChanging(string PropertyName)
{
     if(PropertyChanging!=null)
    {
        PropertyChanging(this,new PropertyChangingEventArgs(PropertyName));      
    }  
}
View Code
当属性的类型为List集合时,需要将List更改为ObservableCollection,这样可以在项发生改变时即时修改集合项。
一分辛苦一分才
原文地址:https://www.cnblogs.com/JoanLin-workNotes/p/4518320.html