HI,
I am using the metro styling for the XamMonthCalendar and want to know if there is a way to remove the padding between header and Mo, Tu etc and the padding after Mo, Tu Etc.
See picture attached showing what I mean.
kind regards
Anne
Hello Anne,
I am just checking if you require any further assistance on the matter.
Thank you for your feedback. I have been looking into your question and currently these are the designed sizes for the element of the XamMonthCalendar when the ‘Metro’ theme is applied. You can set your own size for each of the visual elements using the default template. Another approach I can suggest is applying a template as shown in our sample browser :
XamMonthCalendar -> Style -> Customizing the xamMonthCalendar
I am attaching a sample application(MonthCalendarCustomSize.zip) where I am showing a minimized XamMonthCalendar.
Let me know, if you have any other questions on this matter.
Hi Yanko,
This does work but changing this template causes the view designer to error with can't find editor. Is there no way of making this calendar smaller. I.e. set height and width of each calendar?
Thank you for your post. I have been looking into your question and you need to modify the default template for the ‘CalendarItemArea’ style of the XamMonthCalendar. You can find it in :
C:\Program Files (x86)\Infragistics\NetAdvantage 2013.1\WPF\DefaultStyles\Editors\EditorsMetro.xaml
I have managed to achieve the desired behavior by setting the ‘Margin’ of the ItemControl for the days of week to "6,-14,0,0".
You need to add the style for the ‘CalendarItemArea’ in the Resources of the XamMonthCalendar control.
Let me know, if you need any further assistance on this matter.