开发者

Date Picker Today Option In WPF

Is there any property , option available in the date picker control so that if user want to select today from any date from current date ? e.g if user is view current month of last year then he h开发者_运维百科as the option to select current date ?


just see this link and how they are implementing the Today button in the Datepicker WPF Toolkit). This link is from the WPFToolkit discussion forum. May be this will help you.

http://wpf.codeplex.com/Thread/View.aspx?ThreadId=85516


i think there is no option that there is a button directly in the control. You can use a button outside the control, or something like this to set the current date.

Or you build a custom control....


I just hacked together a simple example. It is VS 2010. www.mbgr.de/CurrentDateWpf.zip. No warranty at all on this one. Use at your own risk :-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜