Irakli Lekishvili
Irakli Lekishvili

Reputation: 34158

C# WPF, Date Picker. Only following days

I want date picker which shows only current day and following only. Not past THanks

Upvotes: 3

Views: 1352

Answers (3)

Yiğit Yener
Yiğit Yener

Reputation: 5986

Here is how you can do it.

yourDatePickersName.DisplayDateStart = DateTime.Today;

Upvotes: 2

Kyle W
Kyle W

Reputation: 3752

Have you tried DatePicker.DisplayDateStart?

Upvotes: 2

CodeNaked
CodeNaked

Reputation: 41393

You can use something like the following with the .NET 4 DatePicker:

xmlns:system="clr-namespace:System;assembly=mscorlib"
...
<DatePicker DisplayDateStart="{x:Static system:DateTime.Now}" />

Upvotes: 6

Related Questions