WPF 日历:自定义控件以显示日历周数
目前我正在创建一个继承自标准 WPF 日历的自定义日历控件。
感谢 Veeneman 先生,我得到了突出显示的具体工作日期 http://www.codeproject。 com/KB/WPF/ExtendingWPFCalendar.aspx。
现在我试图将周数添加到标准“天块”的左侧,但不知道如何完成此任务。
有没有人创建了具有此类功能的自定义日历并愿意分享他的想法?
我尽量避免使用 Codeplex 中的 WPF 工具包,因为我对 ASP.NET 工具包的使用体验相当平庸。
谨致问候
Currently i'm creating a Custom Calendar Control that inherits from the Standard WPF Calendar.
Thanks to Mr. Veeneman i got Highlighting for specific dates to work http://www.codeproject.com/KB/WPF/ExtendingWPFCalendar.aspx.
Now i'm trying to add the weeknumbers to the left of the standard "days-block" but do not know how to accomplish this task.
Has anyone created a Custom Calendar with such a functionality willing to share his thoughts?
I try to avoid to use WPF Toolkit from Codeplex since i have had rather mediocre experiences with the toolkits for asp.net.
with kind regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您自己提到了 WPF 工具包,Charles Petzold 用它来添加周数: http://www.charlespetzold.com/blog/2009/10/Adapting-the-Calendar-Control-for-Week-Numbers.html
我是还在寻找一种将周数添加到默认 WPF 日历控件的方法。 WPF Calendar 的原理与 WPF Toolkit Calendar 有何不同?
You mention the WPF Toolkit yourself, and which is what Charles Petzold has used to add week numbers: http://www.charlespetzold.com/blog/2009/10/Adapting-the-Calendar-Control-for-Week-Numbers.html
I am also looking for a way to add week numbers to the default WPF Calendar control. Is the principles of WPF Calendar different from WPF Toolkit Calendar?