Date picker today in WPF

Is there any property available in the date picker control so that the user can select today from any date from today's date? for example, if the user is viewing the current month of the last year, then he has the option to select the current date?

+2


a source to share


3 answers


just check this link and how they implement the Today button in the WPF Datepicker). This link is from the WPFToolkit discussion forum. Maybe this will help you.



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

+1


a source


I think there is no option to have a button in the control. You can use a button outside the control or something similar to set the current date.



Or, you are creating a custom control.

+1


a source


I just hacked a simple example. This is VS 2010. www.mbgr.de/CurrentDateWpf.zip. No guarantee on this. Use at your own risk :-)

0


a source







All Articles