WPF Calendar: Boldface specified dates?

前端 未结 2 479
被撕碎了的回忆
被撕碎了的回忆 2021-01-12 10:49

I am creating a window that uses a WPF calendar to browse documents created on specified dates during the month shown. When the calendar changes month, I search a database f

2条回答
  •  感动是毒
    2021-01-12 11:21

    It turns out that boldfacing is hard-coded in several places, so I changed to date highlighting instead. I wrote a custom control that has a HighlightedDates list; adding a date to the list highlights the date and provides an optional tool tip for the date with whatever content the host app chooses.

    I have written a CodeProject article titled Extending the WPF Calendar. The article includes the control and explains how I built it.

提交回复
热议问题