Kendall Frey
Kendall Frey

Reputation: 44326

Set display month in WPF Calendar control

When I display my Calendar, I select a certain date by default:

myCalendar.SelectedDate = myDateTime;

The problem is that the month that is displayed doesn't change. It stays at the current month. I searched high and low for a way to display a certain month.

How can I force the Calendar to display the month that contains the selected date?

Upvotes: 3

Views: 6371

Answers (1)

Eric Olsson
Eric Olsson

Reputation: 4913

Have you tried using the DisplayDate property? More here.

Upvotes: 8

Related Questions