WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl

后端 未结 4 586
说谎
说谎 2021-02-08 07:55

i have a problem with WPF Binding. I want to bind a list of Months to a ItemsControl that shows a Calendar Control for each month. But each rendered Calendar shows DateTime.Now,

4条回答
  •  花落未央
    2021-02-08 08:20

    Try binding to SelectedDate instead of DisplayDate. Alternatively, see if it works better if you set IsTodayHighlighted="false".

提交回复
热议问题