如何将数据绑定到Windows Phone日历 [英] how to bind data to the windows phone calendar
问题描述
我需要从日历中获取月份名称,而不是月份号,
I need to get the month name from the calendar instead of month number,
Cal.SelectedMonth->仅返回月份号,
Cal.SelectedMonth->returns only month number,
我从网络服务中获取了一些日期,这些日期我想在日历上突出显示,但是当我尝试下面的代码时,我得到了一个错误,
I am getting some dates from the web-services,those dates I want to highlight on the calendar,but while I try the below code I get an error as
无法隐式转换类型'System.Collections.Generic.IEnumerable< eSchooltrack.Institute>'到'System.DateTime'
"
Cal.SelectedDate =来自xmlNews.Descendants(事件"))中的项目
选择新的Institute()
{
地址= item.Element("Event_From").值
};
"Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<eSchooltrack.Institute>' to 'System.DateTime'
"
Cal.SelectedDate = from item in xmlNews.Descendants("Events")
select new Institute()
{
Adress = item.Element("Event_From").Value
};
我应该怎么做,如果有人知道该程序,请帮助我.
what should I do for this,If anybody know the procedure please help me.
srujana
推荐答案
>"
检索正确的数据.您正在尝试使用Institute对象设置日期.
这篇关于如何将数据绑定到Windows Phone日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!