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?
Thanks Petar, that helps a lot.
I've found the original template now - in EditorsGeneric.xaml (I was looking in EditorsOffice2k7Blue.xaml before!)
Hello Peter,
I have created a sample project (DateTimeEditor_TodayButton.zip) for you showing how you can modify the TodayButton by modifying its original template. I have commented out the original lines for your reference.
Please let me know if you require any further assistance 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
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.
Sincerely,Petar MonovDeveloper Support EngineerInfragistics Bulgariawww.infragistics.com/support
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.