Hi
The XamMonthCalendar control displays a maximum of 12 months. Is this by design or do I have an ability to show as many as the size of the window increases?
Thanks,
Chev
Hello Chev,
Thank you for your post!
I have been looking into your question and have created a small sample application for you. In the sample application I have a simple XamMonthCalendar. By default it shows 12 moths and when you increase the size of the window a second XamMonthCalendar would show with another 12 months.
Please find the attached sample application and feel free to let me know if you have any further questions on this matter.
This is not something I was looking for. My XamMonthCalendar is always set to MinCalendarMode="Days" view. Now, when I increase the size of the window I do not see more than 12 months. For eg. if you run the same provided by changing the MinCalendarMode to "Days" and then maximize the screen we can only see months from March 2014 - Feb 2015. Is not not possible to see more months as the screen size increases?
You would need to re-template the xamMonthCalendar and change the value of the MaxGroups of the CalendarItemGroupPanel in its template.
Appreciate if you could provide a sample.
Thanks
I have been looking into your post and have created a small sample application implementing Andrews suggestion.
This doesn't seem to work for me since I already have a style as follows for my monthcalendar. Kindly let me know how I can get this working with this.
<igEditors:XamMonthCalendar.Resources> <Style TargetType="{x:Type igEditors:CalendarDay}"> <EventSetter Event="MouseMove" Handler="CDLoaded"/> <Setter Property="ToolTip"> <Setter.Value> <MultiBinding Converter="{StaticResource TooltipConverter}"> <Binding RelativeSource="{RelativeSource Self}" Path="StartDate"/> <Binding /> </MultiBinding> </Setter.Value> </Setter>
<Setter Property="Background"> <Setter.Value> <MultiBinding Converter="{StaticResource DateToColorConverter}"> <Binding RelativeSource="{RelativeSource Self}" Path="StartDate"/> <Binding /> </MultiBinding> </Setter.Value> </Setter>
</Style> </igEditors:XamMonthCalendar.Resources>
I have been looking into your post. The style you are using is for the CalendarDay and not for the XamMonthCalendar as I have in the sample application provided in my previous post.
In order to achieve the functionality you want you have to set the MaxGroups property of CalendarItemGroupPanel.
Please take a look at the sample application I have posted in my previous post and feel free to let me know if you have any further questions on this matter.