由于某种原因,它没有显示日期有什么问题吗?
IsolatedStorageSettings uc = IsolatedStorageSettings.ApplicationSettings;
public void load()
{
List<DateTime> List = new List<DateTime>();
Schedule.ItemsSource = null;
List<s> medicationList = (List<s>)uc["nList"];
foreach(sn temp in List)
{
if (dateList.Contains(t.Date))
{
}
else
{
date.Add(t.Date);
Schedule.ItemsSource = List;
}
}
}
愚蠢的错误(解决方案)
<ListBox x:Name="Schedule" >
</ListBox>
那些并删除不必要的代码