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
1465
XamMonthCalendar removing header padding
posted

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

Parents
No Data
Reply
  • 35319
    posted

    Hello Anne,

     

    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.

Children