我需要创建一个类似monthview-control 的前景来显示约会。(显示一个月中所有日子的网格,工作日垂直对齐。应显示每一天的天数和星期几,约会应显示在正确日期内的列表视图中)
我需要一些关于从哪里开始的意见。
假设 ViewModel 看起来像这样:
public class MonthViewModel
{
public List<DateTime> DaysInMonth { get; set; }
public List<Appointment> Appointments { get; set; }
}
public class Appointment
{
public string Title { get; set; }
public DateTime Start { get; set; }
public string Description { get; set; }
}
我是否需要手动安排日期并安排约会,还是可以做得更优雅?
我已经尝试了几个带绑定的apporoches,但都没有成功。关于做什么的任何提示?
问候拉尔西