Hi.. I am using XamMonthCalendar in which i want to change the TodayButtonStyle format as dd/mm/yyyy instead of mm/dd/yyyy.How can i do.And also i am displaying count on the top of the today button in which it is schedule for that day selected.In my example i have selected 7 so count of that day should come exactly middle and day no. should come left top corner.How to do.Is their style for that.I am sending screenshot so that u ppl can understand.
Thanks a lot...... It is working.... Thanks
Hi,
another way to change the format of the date is to customize the resource string ‘TodayButtonCaption’. Its default value is Today: {0:d}. You can change the format of the date using another custom date format string (ex. Today: {0:dd/MM/yyyy} )
Use in your code:
Infragistics.Windows.Editors.
Resources.Customizer.SetCustomizedString("TodayButtonCaption", "Today: {0:dd/MM/yyyy} ");
Hope this will help!
Hi... Thanks for ur post.This will work only when i didn't specify Theme=[Current].Actually i am using theme also and based on the theme appearance of xamMonthcalender should change.So i am using Theme=[current].i an sending a zip file in which ur style will not work.So plz verify and help me by solving.
Hello,
I have been looking into your issue and as to your first question I have created a sample project in order to illustrate my custom approach on changing the described format. In my sample I am re-templating the TodayButtonStyleKey by setting my own MultiConverter instead of the default one. In this converter I am modeling the input values, by changing their format.
As to your second question I am not quite sure that I understood your requirements. Can you please give me a more detailed explanation on what exactly would you like to achieve. Also it would be helpful if you explain me how did you implement that counter, did you retemplate the default style as well, or better – supply me with an isolated sample project that demonstrates how did you implement that functionality.
I will be looking forward to hearing from you.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support