Hi, we're experiencing what looks like a bug in the RadDatePicker control.
I've set the culture in the App.xaml.cs file, and the DatePicker correctly displays the dates as intended:
/// <summary>
/// The main application class.
/// </summary>
public
partial
class
App
{
#region Constructor
/// <summary>
/// Initializes a new instance of <see cref="App" />.
/// </summary>
public
App()
{
StyleManager.ApplicationTheme =
new
Windows8Theme();
InitializeComponent();
Windows8Palette.Palette.AccentColor = (Color)Resources[
"AccentColor"
];
ConfigureCulture();
}
#endregion
#region Private Methods
/// <summary>
/// Configures the culture for the application.
/// </summary>
private
static
void
ConfigureCulture()
{
// set the default culture to English (AU)
// ReSharper disable UseObjectOrCollectionInitializer
var culture =
new
CultureInfo(
"en-AU"
);
// ReSharper restore UseObjectOrCollectionInitializer
// long date format is used on date controls ("D")
culture.DateTimeFormat.LongDatePattern = "ddd d-MMM-yyyy";
// short date format is used in grids ("d")
culture.DateTimeFormat.ShortDatePattern = "dd-MMM-yy";
Thread.CurrentThread.CurrentCulture = culture;
Thread.CurrentThread.CurrentUICulture = culture;
}
#endregion
}
However when a user types in '25-9-13', as soon as they type the '9', the date is shown as 'Mon 1-9-2025' in the tooltip, ie, it suddenly flips the format to yy-mm-dd.
Note that this is not a problem in the corresponding Silverlight control - typing '25-9' correctly shows 'Wed 25-Sep-2013' in the tooltip.
Is this a bug, or something that we can resolve somehow?
Thanks
Sam