MVVM解决方案中的WPF Toolkit日历控件,如何突出显示日期?

发布于 2024-08-07 21:36:22 字数 253 浏览 1 评论 0原文

从这篇文章 http://msdn.microsoft.com/en-us/magazine /dd882520.aspx 我想像他一样创建一个选定日期的列表。但我的列表不是静态的,将其放入转换器中似乎很臭。有人用WPF工具包日历控件做过类似的事情吗?或者我们是否试图将此控件用于超出其预期用途的用途?

From this article http://msdn.microsoft.com/en-us/magazine/dd882520.aspx I wanted to create a list of selected days like he did. Except my list is not static and putting it in the converter seems smelly. Has anyone done something similar with the WPF toolkit calendar control? Or are we trying to use this control for something more than what it is intended?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

各自安好 2024-08-14 21:36:22

使用 MultiValueConverter,它接受 DateTime 和特殊日期的列表。

Use a MultiValueConverter which takes a DateTime and a list of special days.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文