• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1824
  • Last Modified:

Configure WPF DatePicker to allow only mondays to be selected

What would be the best way to ensure that only Mondays can be selected in the WPF Date Picker. The two options I was wondering was to derive a new control or to do a lot of crazy Blackout dates.  I would love to have a better approach that shows all the days but only allows the Monday's to be selected.
0
bryan_z
Asked:
bryan_z
1 Solution
 
Rakesh JaiminiCommented:
http://windowsclient.net/wpf/wpf35/wpf-35sp1-toolkit-calendar-datepicker-walkthrough.aspx
above says
"The Calendar and DatePicker controls let one specify dates that are not considered acceptable dates for selection according to business rules"
 
or try editing datepicker control
i found following link useful
http://www.developmentalmadness.com/archive/2009/08/27/silverlightwpf-customizing-the-datepicker-control.aspx 
0
 
bryan_zAuthor Commented:
Black out dates are a common solution but in-appropriate to the question asked. The resulting article provides a good overview but does not directly answer the question asked.

In the end, it was easier to derive a new class that allows only Mondays to be selected.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now