开发者

Date Picker Today Option In WPF

开发者 https://www.devze.com 2022-12-29 05:00 出处:网络
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 ?

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

精彩评论

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

关注公众号