oli.G
oli.G

Reputation: 1340

WPF Calendar visible date

Quick question: I have a Calendar's SelectedDate property bound to a DateTime value. However, the calendar displays the "page" with today's date by default, no matter what is the current SelectedDate value. So when the selected date is, let's say, in 1989, I have to navigate to that year manually to see that the correct date is actually selected. How do I make it jump to the relevant "page" with the selected date automatically, whenever the databinding mechanism updates SelectedDate?

Upvotes: 0

Views: 533

Answers (2)

Anthony Wieser
Anthony Wieser

Reputation: 4611

If you're binding to the Calendar.DisplayDate property and hoping to use the SelectedDate, then you'll need to use a OneWay binding.

Upvotes: 0

paparazzo
paparazzo

Reputation: 45106

DisplayDate

Calendar.DisplayDate Property

Upvotes: 3

Related Questions