We conventionally display and enter dates as e.g. '18 Aug 2010' (to avoid any confusion between mm/dd/yy and dd/mm/yy forms). I can display dates happily in this format using the ValueToDisplayTextConverter property. How can I allow input in this format as well? I can create a ValueToTextConverter, but if I define a mask just to accept any characters, the control won't display the calendar drop down.
Also, is it possible to customise the format of today's date in the calendar drop down?
Hello Peter,
I have been researching this issue for some time and though it is easy enough to display the format you desire a mask equivalent doesn’t exist. Your best option would be to use the xamDateTimeEditor with these settings Format="dd/MMM/yyyy" Mask="{}{LOC}dd/mm/yyyy".
In order to change the Today button’s format you can retemplate the control using the original templates (default path: C:\Program Files (x86)\Infragistics\NetAdvantage 2010.2\WPF\DefaultStyles ) where there is a style TodayButtonStyleKey.
Please let me know if you require any further clarification on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Petar, thanks for the reply. I'm happy with setting Format and Mask as you suggest, but I'm a bit lost over changing the format of the 'today' date also to "dd MMM yyyy".
Can you explain in bit more detail how I can do this. I can't find the TodayButtonStyleKey in any of the Default styles. This might just be because I'm pretty new to WPF!!!
Thanks
Peter