-
Hi, The DateTimePicker is specified as follows: var dateTimePickerJump = new DateTimePicker { Mode = DateTimePickerMode.DateTime, Value = DateTime.Now }; Eto.Forms version 2.6.1, WPF-package in Windows. Ps. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If you're using the WinForms implementation, which from your screenshot it looks like you might be, the Eto.WinForms implementation of DateTimePicker tries to handle the formatting itself and is kind of broken. It doesn't support the full range of date/time format characters that the system one does, which might explain the weird display you have. It also has strange keyboard behaviour and clipping issues when the time string is too long. Luckily it's easy to disable this custom behaviour, as there's a property on the class that implements the handler. Add this line somewhere in your app startup after you initialise Eto:
|
Beta Was this translation helpful? Give feedback.
-
Hi, System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("fi-FI"); So I'll just make it a setting or clone the value from: System.Threading.Thread.CurrentThread.CurrentUICulture = System.Threading.Thread.CurrentThread.CurrentCulture; Probably the latter is a better option. |
Beta Was this translation helpful? Give feedback.
Hi,
Setting the current thread UI locale, as defined below solved the formatting issue:
So I'll just make it a setting or clone the value from:
Probably the latter is a better option.