public static ObservableCollection<CListModel> AllTravelProjectList
{
get
{
if (_BankStatementStatusList == null)
{
var travelProject = OutPutManageDal.GetInstance().GetOutPut(new XGX_TRAVELPROJECT());
_BankStatementStatusList = new ObservableCollection<CListModel>();
foreach (var item in travelProject)
{
CListModel cm = new CListModel();
cm.DisplayValue = item.PROJECT_NAME;
cm.SelectValue = item.ID.ToString();
_BankStatementStatusList.Add(cm);
}
}
return _BankStatementStatusList;
}
}
if (_BankStatementStatusList == null) 当有这个控制条件的时候会发生标题描述情况。
去掉之后可以及时刷新。