Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
XamMonthCalendar ReferenceDate
posted

I have a wpf form with a XamMonthCalendar control where I'm showing 12 months at a time. I want the first month to be January of the current year. I've bound the ReferenceDate to my viewmodel, but when the form is displayed, it defaults the first month to the current month. When in the designer mode, I can manually set the ReferenceDate to 1/1/2010 and it shows January as the first month. But when I run the application, the form starts up with June 2010 as the first month. Am I using the wrong property to set the first month to display?

<igEditors:XamMonthCalendar Name="xamMonthCalendar1"
 FontSize="12"
 Padding="0"
 Margin="0"
 Background="{x:Null}"
 ReferenceDate="1/1/2010"
 CalendarDimensions="3,4"
 />

 

 

 

 

 

 

 

 

 

 

  • 380
    posted

    Did a little more experimenting and found the correct property to get the first month that I want to initially display - ActiveDate.